BookmarkSubscribeRSS Feed
deleted_user
Not applicable
hi all,

im having trouble with my output. I have an output but the output is gettin truncated. I know that there is a way to change the output to get up to 200 characters but I have lines of output that are more than 200 characters. does anyone have any ideas as to how to get all of my output displayed.

thanks in advance
3 REPLIES 3
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
If your output is going to a file, you control the record-length, if other than the SAS default. However, if your output is created with FILE PRINT, you have a max value of 255 -- coded as OPTIONS LS=255 or LS=MAX.

Scott Barry
SBBWorks, Inc.
deleted_user
Not applicable
but its a dataset that I am trying to create and it is printed with proc print and the length of one of the values is 500...is that possible?

TDS
Cynthia_sas
Diamond | Level 26
Hi:
You will run into Linesize issue if you use the LISTING window and PROC PRINT to print your dataset. You should not have any problems -creating- a big variable but -displaying- it in the LISTING destination or OUTPUT window may be difficult, since the variable exceeds the max allowable linesize, most procedures for displaying will complain.

One option, if you want to keep your output report in the LISTING window is to investigate PROC REPORT and the FLOW option, which would allow your long variable to flow across multiple lines.

The other option and possibly simpler if you are new to SAS is to use the ODS HTML "sandwich" around your program:
[pre]
ods listing close;
ods html file='somefile.html' style=sasweb;
proc print data=work.whatever;
run;
ods html close;
ods listing;
[/pre]

HTML files can be as "wide" as they need to be for viewing on the screen. The above syntax would create an HTML file from the dataset WORK.WHATEVER. That HTML file can be opened in a browser that supports HTML 4.01 tags. (pretty much any browser).

cynthia

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

What is Bayesian Analysis?

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 1140 views
  • 0 likes
  • 3 in conversation