Author: Suganya87
Subject: How to get previous month in SYMNAMES
Posted: Fri Oct 28, 2016 1:37 pm (GMT 5.5)
My requirement is to get the details from 17 of previous month to 18th of current month . Can you please help me how to get previous month details in SYMNAMES.
Edited typo in topic title.
_________________
TIA
Subject: How to get previous month in SYMNAMES
Posted: Fri Oct 28, 2016 1:37 pm (GMT 5.5)
Code: |
//SYMNAMES DD * CURDATE,S'&YR4.-&MON.-18' PREDATE,S'&LYR4.-&LMON-17' /* //SYSPRINT DD SYSOUT=* //SYSOUT DD SYSOUT=* //SORTIN DD DISP=SHR,DSN= dsn name //SORTOUT DD DSN=dsn name1, // DISP=(NEW,DELETE,DELETE), // SPACE=(CYL,(10,05)),MGMTCLAS=LUSE180, // DCB=(RECFM=FB,LRECL=58,BLKSIZE=5800) //SYSIN DD * INCLUDE COND=(001,10,CH,GE,CURDATE,&, 001,10,CH,LE,PREDATE,PM) SORT FIELDS=(1,04,CH,A) END /* |
My requirement is to get the details from 17 of previous month to 18th of current month . Can you please help me how to get previous month details in SYMNAMES.
Edited typo in topic title.
_________________
TIA