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;

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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