Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 8154
Location: East Dubuque, Illinois, USA

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: 8154
Location: East Dubuque, Illinois, USA

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 Compare yesterday's date to the one o... migusd SYNCSORT 8 Fri Sep 22, 2017 11:35 pm
No new posts Comparing 2 Files using Current time arunsoods DFSORT/ICETOOL 5 Fri Sep 22, 2017 6:00 pm
No new posts it is possible output a SET value fro... Martylin JCL & VSAM 5 Fri Sep 22, 2017 7:08 am
No new posts Validate the Date girishb2 DFSORT/ICETOOL 9 Tue Sep 19, 2017 1:12 am
No new posts Julian Date to CICS ABSTTIME blayek CICS 3 Wed Aug 30, 2017 11:15 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us