How to include Year in Header1
Posted: Wed Aug 29, 2012 2:48 pm
I need to include Current year (only year, not complete date) in the header1 of my output file.
all the functions specified in the manual include DATE or MONTH also in the output.
i need only the year (ex : 2012).
Currently i am doing it like this to generate the header record alone
i generate rest of the report in another sort, then combine both the SORT output using IEBGENER.
How can i achieve it using one SORT step only.
all the functions specified in the manual include DATE or MONTH also in the output.
i need only the year (ex : 2012).
Currently i am doing it like this to generate the header record alone
OPTION COPY
OUTFIL FNAMES=RPTHDR,
OVERLAY=(&DATE2,5:2X)
OUTFIL FNAMES=RPTHDR,
OVERLAY=(&DATE2,5:2X)
i generate rest of the report in another sort, then combine both the SORT output using IEBGENER.
How can i achieve it using one SORT step only.