The SAS Output Delivery System and reporting techniques

LST file created is empty. Why?

Reply
Contributor
Posts: 52

LST file created is empty. Why?

Hi All,

I am trying to create LST output file at my location, but the LST fiel created is empty. I dont know why. Please help.

proc printto

print="location/p1.lst" new;

run;

Regards

Super User
Posts: 19,822

Re: LST file created is empty. Why?

Posted in reply to dkanand86

Does your code generate any output?

Super User
Posts: 7,809

Re: LST file created is empty. Why?

Posted in reply to dkanand86

Listings are only generated if ODS LISTING is active. Do you run your code from EG?

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Contributor
Posts: 52

Re: LST file created is empty. Why?

Posted in reply to KurtBremser


I am running code on SAS 9.3 windows.

My ODS listing is off, but earlier it used to route the LST in LST file, but not now.

Please can you send the code so that i can ttry again.

Super User
Posts: 19,822

Re: LST file created is empty. Why?

Posted in reply to dkanand86

RTM:

Base SAS(R) 9.3 Procedures Guide, Second Edition

options nodate pageno=1 linesize=80 pagesize=60 source;
data numbers;
   input x y z;
   datalines;
14.2   25.2   96.8
10.8   51.6   96.8
  9.5   34.2  138.2
  8.8   27.6   83.2
11.5   49.4  287.0
  6.3   42.0  170.7
;
ods listing;
proc printto print='output-file'
new;
run;
proc print data=numbers;
   title 'Listing of NUMBERS Data Set';
run;
proc printto;
run;
ods listing close;
Contributor
Posts: 52

Re: LST file created is empty. Why?


thanks it worked

Ask a Question
Discussion stats
  • 5 replies
  • 584 views
  • 1 like
  • 3 in conversation