I have a table of customers with effective and termination dates. Instead of having one record, I am trying to create a table that has one record per year & month for each month the member is active. Is there a simple way to create the desired table in SAS? FYI, the raw table will have a few thousand records, and will about a dozen columns, but wanted to keep the example simple for now. Also, there's no line in between the records in the desired table, just added for ease of reference. Thanks.
Raw Table
Name Eff_date Term_Date
John 1/1/2020 3/31/2020
Amy 3/1/2019 3/10/2019
Desired Table
Name Eff_date Term_Date Eff_YM
John 1/1/2020 3/31/2020 202001
John 1/1/2020 3/31/2020 202002
John 1/1/2020 3/31/2020 202003
Amy 3/1/2019 3/10/2019 201903
