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 .

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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