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.