BookmarkSubscribeRSS Feed
pdhokriya
Pyrite | Level 9

How should I split the data by using proc report.

 

Column name has John Clark David John Clark and David.

 

Name
John Clark David John Clark David

 

Required output is

 

Name

John

Clark

David

John

Clark

David

2 REPLIES 2
ballardw
Super User

To which output destination? Some approaches may differ depending on whether you expect html, PDF, RTF or plain text files to be generated.

 

You will get better responses to questions if you provide some example data in the form of data step code and your current Proc report code.

Some "solutions" may only work if your variable is using a specific role in Proc Report in relation to other variables so we need to know more about the entire process.

pdhokriya
Pyrite | Level 9
The destination should be RTF.

data have ;
name = "John Clark David John Clark David";output;
run;

proc report data=have;
run;

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
  • 2 replies
  • 867 views
  • 0 likes
  • 2 in conversation