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;

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 429 views
  • 0 likes
  • 2 in conversation