Author: Arun Raj
Posted: Fri Mar 10, 2017 12:06 am (GMT 5.5)
Well then you can use dynamic system symbols in your SYMNAMES and use those symbols in your FINDREP.
Something like this:
SORTOUT
_________________
Arun
----------------------------------------------------------------------------------------------------
Love is like an hourglass, with the heart filling up as the brain empties. -Jules Renard
Posted: Fri Mar 10, 2017 12:06 am (GMT 5.5)
Well then you can use dynamic system symbols in your SYMNAMES and use those symbols in your FINDREP.
Something like this:
Code: |
//STEP01 EXEC PGM=SORT //SYSOUT DD SYSOUT=* //SYMNAMES DD * DATE-IN,S'&LYR4.&LMON.&LDAY.' TIME-IN,S'&LHHMMSS.' //SORTOUT DD SYSOUT=* //SORTIN DD * CON1-CON2 //SYSIN DD * OPTION COPY INREC FINDREP=(INOUT=(C'CON1',DATE-IN,C'CON2',TIME-IN)) |
SORTOUT
Code: |
20170309-134023 |
_________________
Arun
----------------------------------------------------------------------------------------------------
Love is like an hourglass, with the heart filling up as the brain empties. -Jules Renard