Hello,
I am saving the log and lst files of my program but when I open the saved files the content is cut. In SAS windows when running the program the full content.
Any idea on how to solve this?
Interactive mode
Saved file
If you don't want the output centered the use the NOCENTER system option.
How did you save the files? SAS Menu or commands, SAS Code, copy paste into some other application or something else?
What application are you viewing the saved LST and LOG files with?
Your application may only be showing some fixed number of columns.
I Use the code;
dm output "print file='Study\..\lst\dm.lst' replace";
proc printto; run;
and I open the saved file with Notepad.
The linesize option is already at max.
The issue seems to be the LST in the SAS interactive window is not left aligned
Ran this using SAS 9.4M6. Output is attached with no truncation.
options linesize=max;
proc printto log='/home/fkhurshed/Demo1/demo_log.log' print='/home/fkhurshed/Demo1/demo_listing_output.lst'; run;
data class;
set sashelp.class;
if age in (12, 13) then sex = 'F';
run;
proc compare data=class compare=sashelp.class;
run;
Can you please run the following in your system and attach the exact output that is generated? You will need to modify the paths to be correct for your system.
@Kc2 wrote:
I get the same outputs. Still getting cut.
These are the outputs;
log;
Lst:
If you don't want the output centered the use the NOCENTER system option.
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.