View previous topic :: View next topic
|
Author |
Message |
aqilis
New User
Joined: 23 Feb 2007 Posts: 17 Location: NOIDA
|
|
|
|
Hi,
I want to get system date from dfsort and write it in a sequential dataset.
the date has to be in the this format mm/dd/yyyy.
thanks |
|
Back to top |
|
|
raak
Active User
Joined: 23 May 2006 Posts: 166 Location: chennai
|
|
|
|
If u use DFSORT's Icetool, u have an option as DATE(MD4-).
this will give u the current date in MM-DD-YYYY format. |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
aqilis,
Here's a DFSORT job that will do what you asked for:
Code: |
//S1 EXEC PGM=ICEMAN
//SYSOUT DD SYSOUT=*
//SORTIN DD *
//SORTOUT DD DSN=... output file
//SYSIN DD *
OPTION COPY
OUTFIL REMOVECC,NODETAIL,
TRAILER1=(DATE=(MD4/))
/*
|
|
|
Back to top |
|
|
|