Ron, Look up DATE2-1 in here
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ice1ca60/3.15?DT=20110608113434#TBLPASDTCN Thanks, Kolusu DFSORT Development IBM Corporation IBM Mainframe Discussion List <[email protected]> wrote on 07/29/2015 12:52:35 PM: > From: Ron Thomas <[email protected]> > To: [email protected] > Date: 07/29/2015 12:52 PM > Subject: Sort :- Last Month and Year > Sent by: IBM Mainframe Discussion List <[email protected]> > > Hi . > > is there a way using SORT to get the lastmonth & year in a file. For > e.g if i am running today i need to get the o/p in a file as 201506 > (year and last month) . If you are running in the comming January > 2016 then it should be 201512 etc.. > > Thanks > Ron T > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to [email protected] with the message: INFO IBM-MAIN > ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
