BookmarkSubscribeRSS Feed
Miracle
Barite | Level 11

Dear SAS users,

I would like to have only one observation row for every distinct format reading from a format dataset by inserting a carriage return for every value of the format.
Thereafter, export to Excel with carriage return preserved.
I tried 'OD'x in the datastep but it is not working.
Can anyone please guide me on this?
Thanking you in advance and have a nice day.

 

 

2 REPLIES 2
ballardw
Super User

Please show the code you used.

You may have to provide a small example of the data used as well.

Instructions here: https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-dat... will show how to turn an existing SAS data set into data step code that can be pasted into a forum code box using the </> icon or attached as text to show exactly what you have and that we can test code against.

Reeza
Super User
What are you trying to do here overall?

CFC_SAS_Communities_400x225.jpg

Call for content now open!

It's your turn to help shape SAS Innovate 2027. Share your expertise and inspire the SAS community.

Submit your proposal →

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
  • 1427 views
  • 0 likes
  • 3 in conversation