BookmarkSubscribeRSS Feed
BrahmanandaRao
Lapis Lazuli | Level 10
data test;
d=nwkdom(2, 7, month(today()), year(today()));
put d date9.;
run;
4 REPLIES 4
jimbarbour
Meteorite | Level 14
I haven't tried running your code, but that looks correct. What is your question?

Jim
BrahmanandaRao
Lapis Lazuli | Level 10
Run the code output in sas date format
jimbarbour
Meteorite | Level 14

@BrahmanandaRao wrote:
Run the code output in sas date format

OK.  When I run the code, I get the following in the log:

10JUL2021

Looking at a calendar, I can see that this is in fact the 2nd Saturday of July 2021.  In the Test dataset, I can see a value of 22471 which is the correct value for the 2nd Saturday of July 2021.  Everything appears to be working.  What is the question?

 

Jim

 

jimbarbour_0-1627659571274.png

 

Tom
Super User Tom
Super User

Thanks.

That looks like a good answer. What was the original question?  Perhaps we are playing Jeopardy .

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 1437 views
  • 2 likes
  • 3 in conversation