Hello,
How to split proc print a very long row into different lines to avoid of being truncated?
Here is the example SAS code: x2 and x3 are too long and were truncated,I want to print them into several lines without being truncated.
Thanks!
data n;
x='11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111';
x2=x||x;
x3=x2||x2;
run;
option ls=max;
proc print data=n;
run;
WARNING: Data too long for column "x2"; truncated to 252 characters to fit.
WARNING: Data too long for column "x3"; truncated to 252 characters to fit.
Not with PROC PRINT. You would have to switch to PROC REPORT and use the WRAP option.
You have some control with SQL printing:
proc sql flow=30 40;
select * from n;
quit;
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.