ODS Listing

ODS Tips

Output to text file

[code lang=text]
ODS LISTING file='C:\Users\david\Documents\My SAS Files(32)\9.3\ods\sample.lst';
OPTIONS NONUMBER NODATE;
PROC PRINT DATA=SASHELP.cars(OBS=100);
VAR make model type origin drivetrain msrp invoice enginesize cylinders horsepower mpg_city mpg_highway;
RUN;
OPTIONS DATE;
PROC FREQ DATA=SASHELP.cars;
TABLES make type origin drivetrain enginesize cylinders ;
RUN;
proc means data=sashelp.cars mean median min max skew;
class type origin;
var msrp enginesize horsepower mpg_city mpg_highway weight wheelbase length;
run;
ODS LISTING CLOSE;
[/code]

  • .lst file can be opened in SAS by dragging the file to the program edit window.

  • click file in the file explorer window will launch sas enterprise guide

  • ods listing can be used for record keeping and to check the validity of the sas programming.