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 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of 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
  • 792 views
  • 3 likes
  • 2 in conversation