Help using Base SAS procedures

formatting &sysdate

Accepted Solution Solved
Reply
Super Contributor
Posts: 279
Accepted Solution

formatting &sysdate

I want to put today's date in a title statement.  Instead of 12DEC11, I want the output to read December 11, 2011.  Can I use %sysfunc to do this?  If so, how?  Thanks.


Accepted Solutions
Solution
‎12-07-2011 12:45 PM
Super User
Posts: 19,855

formatting &sysdate

Use the worddate format.

%let date1=%sysfunc(today(), worddate20.);

%put &date1;

View solution in original post


All Replies
Solution
‎12-07-2011 12:45 PM
Super User
Posts: 19,855

formatting &sysdate

Use the worddate format.

%let date1=%sysfunc(today(), worddate20.);

%put &date1;

Super Contributor
Posts: 279

formatting &sysdate

Excellent.  Thanks.

🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 156 views
  • 0 likes
  • 2 in conversation