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

To fetch system date in YYYYMMDD format


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Sathishbabu M

New User


Joined: 08 May 2008
Posts: 2
Location: Hyderabad

PostPosted: Fri Nov 14, 2008 3:51 pm
Reply with quote

Hi Friends,

Can any one help me to fetch the system date in YYYYMMDD format using sort.

Thanks,
Sathishbabu
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2481
Location: @my desk

PostPosted: Fri Nov 14, 2008 3:55 pm
Reply with quote

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

New User


Joined: 08 May 2008
Posts: 2
Location: Hyderabad

PostPosted: Fri Nov 14, 2008 3:58 pm
Reply with quote

Thanks Arun....it works..
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts Sysplex System won't IPL at DR site I... All Other Mainframe Topics 2
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
Search our Forums:

Back to Top