I have data like this
----+----1----+----2----+----3----+--
000000002320110328087YY01200000020124
I want to add the months
from column 11-18, with the value from 24-26
I am thinking about the outrec field is like this
11,8,Y4T,ADDMONS,24,3,TOGREG=Y4T(-)
But when I try it , it give rc=0016, because of the operand error ,
I am thinking about store the value of 24,3 to a variable then i put it to variable , but i dont know if JCL can provide that .. anyone can help?
Notes : i use dfsort , not icetool
and i dont want to hardcode it because i already try 11,8,Y4T,ADDMONS,+12,TOGREG=Y4T(-), and it works but if can , iwant to replace the "+12" with the value from column 24-26
I'm not aware of a way to do this with plain DFSORT.
For instance PARSE would not work, because it would fail to resolve
%2
:You might want to look at sort exits if you'd like to go with DFSORT.