BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Badshaah
Obsidian | Level 7
Need to find first date in month ..where as i don't have any date variable in table it's just take date value from system.
1 ACCEPTED SOLUTION

Accepted Solutions
RW9
Diamond | Level 26 RW9
Diamond | Level 26

Um, the first date in any month is the 1st?  So:

data want;
  first_day_in_month=mdy(month(today(),1,year(today());
run;

View solution in original post

3 REPLIES 3
Reeza
Super User

First = intnx('month', date(), 0,'b');

RW9
Diamond | Level 26 RW9
Diamond | Level 26

Um, the first date in any month is the 1st?  So:

data want;
  first_day_in_month=mdy(month(today(),1,year(today());
run;
Badshaah
Obsidian | Level 7
Thanks Mate !!!
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
  • 3 replies
  • 1840 views
  • 1 like
  • 3 in conversation