BookmarkSubscribeRSS Feed
angel302
Fluorite | Level 6

I am trying to evaluate member's plan eligibility as of the 15th of each month for this population in 2014. Below is my dataset, called Member:

MemberID       Elig_Start           Elig_End

            1               1/1/2014          9/25/2014
            2               1/1/2014         12/31/9999
            3               1/1/2012          2/31/2013

 

The output should be something like this:

MemberID       Elig_Start           Elig_End                Elig_Month

            1               1/1/2014          9/25/2014                     9

            2               1/1/2014         12/31/9999                   12 
            3               1/1/2012          2/31/2013                      0 (or missing)

 

Anybody has idea? Thank you!


 

2 REPLIES 2
PaigeMiller
Diamond | Level 26

It is generally not a good idea to post the same question more than once.

 

All replies should go to the other thread at https://communities.sas.com/t5/SAS-Programming/Month-counts-in-certain-date-period/td-p/594310

--
Paige Miller
angel302
Fluorite | Level 6
Sorry for repeating my question. I posted the question in this new user community first, but then thought the other community is a better place too go.

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 476 views
  • 1 like
  • 2 in conversation