Hey all,
I'm having this weird issue where my Excel files created with SAS have carriage returns in the middle of the cells. It's like SAS is determining the column width at some point and then inserting carriage returns instead of true text wrapping.
I'd send over some code, but I'm just using a very basic PROC Print in SAS Studio. I have a feeling it's a settings issue. I'm having some vague recollection of a setting I used back when we had EG that prevented this, but I could be making that up entirely.
Has anyone else run across this?
If you are using ODS EXCEL to make the files then try FLOW="TABLES" option.
https://support.sas.com/kb/59/351.html
/* Using the FLOW="TABLES" Excel suboption */
ods excel file="c:\temp.xlsx" options(flow="tables");
proc print data=sashelp.orsales label;
run;
ods excel close;
If you are using ODS EXCEL to make the files then try FLOW="TABLES" option.
https://support.sas.com/kb/59/351.html
/* Using the FLOW="TABLES" Excel suboption */
ods excel file="c:\temp.xlsx" options(flow="tables");
proc print data=sashelp.orsales label;
run;
ods excel close;
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.