View previous topic :: View next topic
|
Author |
Message |
VVRAVINDRA
New User
Joined: 04 Aug 2008 Posts: 46 Location: Chennai
|
|
|
|
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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
SAS has the TODAY() function which returns the current date ... why would you need to pass it from JCL? |
|
Back to top |
|
|
VVRAVINDRA
New User
Joined: 04 Aug 2008 Posts: 46 Location: Chennai
|
|
|
|
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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Code: |
CD = TODAY () ;
FORMAT CD YYMMDDN8. ;
|
creates variable CD to have the current date and formats it as YYMMDD for output.
Use [URL] BBCode for External Links 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 |
|
|
VVRAVINDRA
New User
Joined: 04 Aug 2008 Posts: 46 Location: Chennai
|
|
|
|
Thanks a many for the help I would give a try to it. |
|
Back to top |
|
|
|