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

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

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