Can you help me how to find the month end dates using COBOL pgm
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 - date field (MMDDYY - May month's end date)
043010 - date field (MMDDYY - April month's end date)
Thanks.