Hi All,
I want to know, how to convert today's system date(YYYYMMDD) in DDDDD format by JCL/Sort card. My requirement is to delete records from the file which have transaction date older than 400 days from today's day, but transaction date is in DDDDD format.
My Approach---
In Step-1,I am thinking to get the system date via JCL and then convert it in DDDDD format.
In Step-2, I am thinking to subtract 400 days from DDDDD days(got from step1) and than use it to delete all the records from the file which have date less than this and write it to a new archived file.
Can anyone please help in this regard(If any sample JCL can be provided then much helpful).
Many Thanks,
Gaurav