USe system rundate and find last months' end dates
Posted: Thu Jul 22, 2010 3:28 pm
Hi,
Please let me know how to get the below requirement.
I need to manipulate the system run date and get last two month's end dates.
For eg: If today is June 1st or 3rd,
then the output file (FB/80) should hold 'May' and 'April' month end dates.
The output file should hold a single record as below,
ABCDEFGXX0000053110043010
where
ABCDEFG - constant
XX - a parm value (alphabetic) (Can we pass the parm value in the SORT JCL ?)
0000 - constant
053110 - constant (MMDDYY - May month's end date)
043010 - constant (MMDDYY - April month's end date)
Thanks.
Please let me know how to get the below requirement.
I need to manipulate the system run date and get last two month's end dates.
For eg: If today is June 1st or 3rd,
then the output file (FB/80) should hold 'May' and 'April' month end dates.
The output file should hold a single record as below,
ABCDEFGXX0000053110043010
where
ABCDEFG - constant
XX - a parm value (alphabetic) (Can we pass the parm value in the SORT JCL ?)
0000 - constant
053110 - constant (MMDDYY - May month's end date)
043010 - constant (MMDDYY - April month's end date)
Thanks.