How to format a date to custom format in jcl
Posted: Thu Oct 30, 2014 4:32 pm
need to subtract 3 years from input. and populate the o/p file in mentioned format
I/P :
2014-10-30
O/P:
120901
I have used the below code to subtract three years from the input file. Let me know your suggestions please to subtract and populate the o/p in yymmdd format.
I/P :
2014-10-30
O/P:
120901
I have used the below code to subtract three years from the input file. Let me know your suggestions please to subtract and populate the o/p in yymmdd format.
SORT FIELDS=COPY
OUTREC BUILD=(DATE1-1095)
OUTREC BUILD=(DATE1-1095)