View previous topic :: View next topic
|
Author |
Message |
Sathishbabu M
New User
Joined: 08 May 2008 Posts: 2 Location: Hyderabad
|
|
|
|
Hi Friends,
Can any one help me to fetch the system date in YYYYMMDD format using sort.
Thanks,
Sathishbabu |
|
Back to top |
|
|
Arun Raj
Moderator
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
|
|
|
|
Sathish,
You can use the DATE1 function to achieve this.
Code: |
//STEP01 EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SORTOUT DD SYSOUT=*
//SORTIN DD *
DUMMY RECORD
//SYSIN DD *
OPTION COPY
INREC BUILD=(&DATE1) |
|
|
Back to top |
|
|
Sathishbabu M
New User
Joined: 08 May 2008 Posts: 2 Location: Hyderabad
|
|
|
|
Thanks Arun....it works.. |
|
Back to top |
|
|
|