BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
nayab_shaik
Calcite | Level 5

Hi team,

 

how to find out every month in second Saturday

 

 

 

 

 

Thanks&advance

1 ACCEPTED SOLUTION

Accepted Solutions
PeterClemmensen
Tourmaline | Level 20

Ok. Then use the NWKDOM Function like this. Below gives dates for second saturdays in each month of 2019

 

data _null_;
    do month=1 to 12;
        dt=nwkdom(2, 7, month, 2019);
        put dt= date9.; 
    end;
run;  

 

View solution in original post

5 REPLIES 5
PeterClemmensen
Tourmaline | Level 20

Do you mean the second saturday in each month?

nayab_shaik
Calcite | Level 5

yes absolutely

PeterClemmensen
Tourmaline | Level 20

Ok. Then use the NWKDOM Function like this. Below gives dates for second saturdays in each month of 2019

 

data _null_;
    do month=1 to 12;
        dt=nwkdom(2, 7, month, 2019);
        put dt= date9.; 
    end;
run;  

 

Kurt_Bremser
Super User

This the SAS communities. Using just "sas" as a subject line is absolutely NOT descriptive. Please put at least a little effort into your questions.

 

What month should be found for a "second Saturday"? The second Saturday of a year (eg) will always be in January. So your question makes no sense.

 

Please edit your subject line, and rephrase your question.

 


@nayab_shaik wrote:

Hi team,

 

how to find out every month in second Saturday

 

 

 

 

 

Thanks&advance


 

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 5 replies
  • 700 views
  • 0 likes
  • 3 in conversation