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
 

 

How to pass a current date in a SAS step in JCL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
VVRAVINDRA

New User


Joined: 04 Aug 2008
Posts: 46
Location: Chennai

PostPosted: Fri Feb 06, 2009 6:48 am    Post subject: How to pass a current date in a SAS step in JCL
Reply with quote

Hi,

How to pass the current date in a SAS step of a JCL so that the email that is being generated by the SAS step picks that up.

Thanks a many for the help....
Back to top
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7930
Location: Bellevue, IA

PostPosted: Fri Feb 06, 2009 7:57 am    Post subject:
Reply with quote

SAS has the TODAY() function which returns the current date ... why would you need to pass it from JCL?
Back to top
View user's profile Send private message
VVRAVINDRA

New User


Joined: 04 Aug 2008
Posts: 46
Location: Chennai

PostPosted: Fri Feb 06, 2009 8:04 am    Post subject:
Reply with quote

Wow... but I'm a layman to SAS, I just know few basic commands... So it would be more helpful if you could throw some light on this...
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7930
Location: Bellevue, IA

PostPosted: Fri Feb 06, 2009 8:11 am    Post subject:
Reply with quote

Code:
CD = TODAY () ;
FORMAT CD YYMMDDN8. ;
creates variable CD to have the current date and formats it as YYMMDD for output.

www.sas.com has a link to the SAS documentation and there's a link to all their documentation (Support & Training at the top, then Product Documentation under Knowledge Base on the left) which is available without charge. I recommend you do some reading there since SAS is a very complex, full-featured programming language with over 35 years of history.
Back to top
View user's profile Send private message
VVRAVINDRA

New User


Joined: 04 Aug 2008
Posts: 46
Location: Chennai

PostPosted: Fri Feb 06, 2009 8:12 am    Post subject:
Reply with quote

Thanks a many for the help I would give a try to it.
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 JES2 JEC: Use UNIX Pipes to Pass Data... Virendra Shambharkar JCL & VSAM 21 Tue Dec 20, 2016 6:55 pm
No new posts TOT & DATE parameter in ICEMAN hemanthj642 DFSORT/ICETOOL 4 Mon Nov 14, 2016 5:19 am
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
This topic is locked: you cannot edit posts or make replies. Get correct date and time when curren... balaji81_k DB2 24 Fri Oct 14, 2016 10:40 pm
No new posts Change date (DD/MM/YY) in 2nd record ... uday kiran DFSORT/ICETOOL 12 Wed Sep 07, 2016 10:57 pm


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