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.
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.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
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.
Ready to level-up your skills? Choose your own adventure.