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

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 1371 views
  • 3 likes
  • 2 in conversation