View previous topic :: View next topic
|
Author |
Message |
Richard J
New User
Joined: 27 Mar 2009 Posts: 13 Location: London, UK
|
|
|
|
Hello,
I would like to insert the current date into a header record using OUTREC BUILD but I can't find the correct code for the date format in European DD.MM.YYYY
In DFSORT APG (page 108) it indicates that DATE1(.) would do the trick for YYYY.MM.DD - but there is no syntax for this date format to be in reverse.
Does anyone know where I could find this information please?
Many thanks |
|
Back to top |
|
|
Skolusu
Senior Member
Joined: 07 Dec 2007 Posts: 2205 Location: San Jose
|
|
|
|
Richard J,
You need to use DATE=(ABCD) format which lets you have the date any format you want. Read about it here DATE=(abcd) format
Code: |
//STEP0100 EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SORTIN DD *
RICHARD J
//SORTOUT DD SYSOUT=*
//SYSIN DD *
SORT FIELDS=COPY
OUTFIL REMOVECC,HEADER1=('DATE IN EUROPEAN FORMAT : ',DATE=(MD4.))
//* |
|
|
Back to top |
|
|
Richard J
New User
Joined: 27 Mar 2009 Posts: 13 Location: London, UK
|
|
|
|
That's an incredibly handy link.
Thankyou. |
|
Back to top |
|
|
|