I have a input file with records as
Input file:
0 VP01153201801021640
MY requirement is to deduct 1 from the end and place in
Output file.
Like:
0 VP01153201801021639
BELOW is my code
Sortin dd dsn=input file,disp=shr
Sortout dd dsn=output file,disp=shr
Sysin dd *
Sort fields=copy
Outrec fields=(1:1,22,23,1,zd,sub,+1,edit=(t))
Sortout dd dsn=output file,disp=shr
Sysin dd *
Sort fields=copy
Outrec fields=(1:1,22,23,1,zd,sub,+1,edit=(t))
my code looks fine for single last value.
Eg if the last is 6 it changes it 5. But for case as mentioned since 2 digits are involved 40 to 39 ,my code doesnt work.
Please help me.