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-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

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
  • 792 views
  • 1 like
  • 2 in conversation