- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
If you don't want the output centered the use the NOCENTER system option.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
I Use the code;
dm output "print file='Study\..\lst\dm.lst' replace";
proc printto; run;
and I open the saved file with Notepad.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Try setting:
option linesize = max;
And re-running to see what happens.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
The linesize option is already at max.
The issue seems to be the LST in the SAS interactive window is not left aligned
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
dm output "print file='Study\..\lst\dm.lst' replace";
proc printto; run;
I would expect to see:
proc printto log='path to log file.log' print='path to lst file.lst'; run;
What happens if you use that instead of the DM command.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
ods listing file = 'path to lst file';
sas code;
ods listing close;
And then the file specified above should have your output with no issues.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
[cid:161e34a5-b247-4db8-8928-adc459ec3dfe]
the lst file still shows the results right aligned instead of left
[cid:6e81b1ab-c6c0-4070-8851-170396f1b530]
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
These are the outputs;
log;
Lst:
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
If you don't want the output centered the use the NOCENTER system option.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content