DATA Step, Macro, Functions and more

%let containing today's date

Accepted Solution Solved
Reply
Super Contributor
Posts: 287
Accepted Solution

%let containing today's date

Code:

%let test=3701_Prelim_Score_Roster - %sysfunc(today(),ddmmyyn6.);

 

I want this to resolve to 3701_Prelim_Score_Roster - 12DEC17  instead of 3701_Prelim_Score_Roster - 151217.


Accepted Solutions
Solution
‎12-15-2017 10:27 AM
Contributor
Posts: 30

Re: %let containing today's date

Simple, all you'd need to do is just change the format in the %sysfunc:

 

%sysfunc(today(),date7.);

 

View solution in original post


All Replies
Solution
‎12-15-2017 10:27 AM
Contributor
Posts: 30

Re: %let containing today's date

Simple, all you'd need to do is just change the format in the %sysfunc:

 

%sysfunc(today(),date7.);

 

☑ This topic is solved.

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

Discussion stats
  • 1 reply
  • 314 views
  • 0 likes
  • 2 in conversation