BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
SP01
Obsidian | Level 7

Hello All,

 

I have dataset A 

datalines  age race sex county   population 

                 1     W     F     Adams   139

 

Here population 139 is the aggregate of that age, sex, race, and county.

 

What I want to do is replicate that above combination to 138 rows to reflect as row level data. Any help is really appreciated?

Thank you!

1 ACCEPTED SOLUTION
6 REPLIES 6
SP01
Obsidian | Level 7

Yes, that is right. Thank you! Any help would be great.

SP01
Obsidian | Level 7

So, it is actually 138 observations with that combination of age, race, sex etc. I have sum for each combination in my data already. I need to expand or split those into rows based on that number. Thank you!

SP01
Obsidian | Level 7

Thank you, Sir! This worked. Much appreciated.

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

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
  • 6 replies
  • 1313 views
  • 3 likes
  • 2 in conversation