i tried to find some date manipulations using OUTFIL as below. My requirement is display 3 date formats from input file.
ie.. if my input date 11/12/2013 then my output should be as below:
11/12/2013 11122013(reformatted date) 20131122(added 10 days)
I need to use the reformatted date values of OUTFIL BUILD in OUTREC. i got spaces for those location.
Please suggest some solutions..
Here is my code i tried..
INPUT :
//SORTIN DD *
ABCDEF11/12/2013NOUSE TRYAGAIN
//SORTOUT DD SYSOUT=*
//SYSIN DD *
SORT FIELDS=COPY
OUTFIL BUILD=(1:7,10,21:7,2,23:10,2,25:13,4)
OUTFIL OUTREC=(31:21,8,Y4W,ADDDAYS,+10,TOGREG=Y4T)
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=D
ABCDEF11/12/2013NOUSE TRYAGAIN
//SORTOUT DD SYSOUT=*
//SYSIN DD *
SORT FIELDS=COPY
OUTFIL BUILD=(1:7,10,21:7,2,23:10,2,25:13,4)
OUTFIL OUTREC=(31:21,8,Y4W,ADDDAYS,+10,TOGREG=Y4T)
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=D
OUTPUT : (b - blank)
1234567890123456789012345678901234567890123456789012345678901234567890---> cols
11/12/2013 11122013 bbbbbbbb
11/12/2013 11122013 bbbbbbbb
Code'd