Could you help me to solve the following question?
name count
abc 2
cde 3
def 1
......
xyz 5
the result I want is the following
name
abc
abc
cde
cde
cde
def
....
xyz
xyz
xyz
xyz
xyz
Could you help me to solve the following question?
name count
abc 2
cde 3
def 1
......
xyz 5
the result I want is the following
name
abc
abc
cde
cde
cde
def
....
xyz
xyz
xyz
xyz
xyz
data want;
set have;
do i = 1 to count;
output;
end;
run;
Just a note that there is no need to post in multiple forums. Since you have an answer in this post, I've merged your other, identical question, with this post.
@Peter_C: Hi Peter! It was marked as a solution almost immediately after you posted it. I know, because I had posted basically the same solution seconds after you did, saw yours, thus delteted mine.
Art, CEO, AnalystFinder.com
April 27 – 30 | Gaylord Texan | Grapevine, Texas
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!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.
Ready to level-up your skills? Choose your own adventure.