BookmarkSubscribeRSS Feed
dkanand86
Calcite | Level 5

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

5 REPLIES 5
Reeza
Super User

Does your code generate any output?

dkanand86
Calcite | Level 5


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.

Reeza
Super User

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;
dkanand86
Calcite | Level 5


thanks it worked

sas-innovate-2024.png

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.

 

Register now!

How to Concatenate Values

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 5 replies
  • 2864 views
  • 1 like
  • 3 in conversation