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.

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

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