IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Insert date in format dd.mm.yyyy


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Richard J

New User


Joined: 27 Mar 2009
Posts: 13
Location: London, UK

PostPosted: Tue Mar 08, 2011 4:50 pm
Reply with quote

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
View user's profile Send private message
Skolusu

Senior Member


Joined: 07 Dec 2007
Posts: 2205
Location: San Jose

PostPosted: Tue Mar 08, 2011 10:35 pm
Reply with quote

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
View user's profile Send private message
Richard J

New User


Joined: 27 Mar 2009
Posts: 13
Location: London, UK

PostPosted: Wed Mar 09, 2011 2:40 pm
Reply with quote

That's an incredibly handy link.

Thankyou.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts Populate last day of the Month in MMD... SYNCSORT 2
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts Need to convert date format DFSORT/ICETOOL 20
No new posts Need help to append a date&tsp at... DFSORT/ICETOOL 9
Search our Forums:

Back to Top