Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

To fetch system date in YYYYMMDD format

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: To fetch system date in YYYYMMDD format
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: 2180
Location: @my desk

PostPosted: Fri Nov 14, 2008 3:55 pm    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts IMS BMP program causes 878 system abend Artemk IMS DB/DC 7 Tue Nov 22, 2016 8:26 pm
No new posts TOT & DATE parameter in ICEMAN hemanthj642 DFSORT/ICETOOL 4 Mon Nov 14, 2016 5:19 am
No new posts Check System time(Minute) Using TIME1... balaji81_k DFSORT/ICETOOL 5 Fri Nov 11, 2016 10:53 am
No new posts Match or compare two files in VB Format anatol DFSORT/ICETOOL 14 Thu Nov 03, 2016 7:41 pm
This topic is locked: you cannot edit posts or make replies. How to pass the previous month date i... Suganya87 DFSORT/ICETOOL 5 Mon Oct 31, 2016 4:13 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us