Hi -
I have a file of LRECL 44 and need to overlay a date in Position 35 by adding
120 days to the date at position 25
The overlay to be done based also on condition .
Coded as below
OPTION COPY
OUTREC IFTHEN=(WHEN=(35,10,CH,EQ,X'',
AND,25,10,CH,GT,X'000
>> could someone please let me know what the issue is in the control card as it
>> is giving error .
Ron,
Looks like you invented your syntax , which is NOT valid with DFSORT. Search
for "Adding or Subtracting Days" in the below link and you will see the right
syntax. Pay attention to Table.1
Thanks Kolusu for sharing the link . still i am not able to figure out the same
.
Modified as below and still not working
OPTION COPY
OUTREC IFTHEN=(WHEN=(35,10,CH,EQ,X'',
AND,25,10,CH,GT,X''),
OVERLAY=(35:25,10,Y4T,ADDDAYS,+120))
>> Could you please help me figure out where the issue is ?
Ron,
Here are the issues assuming that you read thru documentation that I shared
earlier.
• The Syntax of ADDDAYS shows that it requires TOGREG or TOJUL.
• Look at table 18, you would notice that max length of Y4T is 8 byte
Hi Kolusu -
Here is what i am getting . Could you please let me what changes to be made ?
ICE000I 1 - CONTROL STATEMENTS FOR 5650-ZOS, Z/OS DFSORT V2R4 - 13:36 ON FRI AU
OPTION COPY
OUTREC IFTHEN=(WHEN=(35,10,CH,EQ,X'',
AN
>> Here is what i am getting . Could you please let me what changes to be made ?
Ron,
Sigh ! Not sure as to how you invent your own syntax hope and that it would
work. You switched back to using 10 bytes despite me showing that the max
length is only 8 bytes? and you coded 10 bytes without a f
Thanks a lot Kolusu. Sorry i didn't articulate what is documented in the user
guide in the right way . Anyway thanks again for all the help ..
Regards
Ron T
--
For IBM-MAIN subscribe / signoff / archive access instructions,