proc print data=sashelp.class;
where weight>100;
run;
quit;
ods html;
ods listing close;
Output 9.2 Listing Output in the Windowing Environment
See the procedure descriptions in the Base SAS Procedures Guide for examples of output
from SAS procedures. For a discussion and examples of DATA step output, see the
“FILE Statement” in SAS DATA Step Statements: Reference and the “PUT Statement” in
SAS DATA Step Statements: Reference.
The SAS Log
Structure of the Log
The SAS log is a record of everything that you do in your SAS session or with your SAS
program. Original program statements are identified by line numbers. SAS messages are
interspersed with SAS statements. These messages might begin with the words NOTE,
INFO, WARNING, ERROR, or an error number, and they might refer to a SAS
statement by its line number in the log.
For example, in the following output, the number 1 is printed to the left of the OPTIONS
statement. This means that it is the first line in the program. In interactive mode, SAS
continues with the sequence of line numbering until you end your session. If you submit
the program again (or submit other programs in your current SAS session), the first
program line number is the next consecutive number.
Operating Environment Information
The SAS log appears differently depending on your operating environment. See the
SAS documentation for your operating environment.
164 Chapter 9 SAS Output
Log 9.1 Sample SAS Log
NOTE: Copyright (c) 2002-2012 by SAS Institute Inc., Cary, NC, USA. 1
NOTE: SAS (r) Proprietary Software 9.4 (TS1B0) 2
Licensed to SAS Institute Inc., Site 1. 3
NOTE: This session is executing on the W32_7PRO platform. 4
NOTE: SAS initialization used:
real time 4.19 seconds
cpu time 0.85 seconds
1 options pagesize=24
2 linesize=64 pageno=1 nodate; 5
3 data logsample; 6
5 infile
5 ! '\\myserver\my-directory-path\sampledata.dat'; 7
6 input LastName $ ID $ Gender $ Birth : date7. score1
6 ! score2 score3 score4 score5 score6 score7 score8;
7 format Birth mmddyy8.;
8 run;
NOTE: The infile
'\\myserver\my-directory-path\sampledata.dat' is: 8
Filename=\\myserver\my-directory-path\sampledata.dat,
RECFM=V,LRECL=256,File Size (bytes)=296,
Last Modified=08Jun2009:15:42:26,
Create Time=08Jun2009:15:42:26
NOTE: 5 records were read from the infile 9
'\\myserver\my-directory-path\sampledata.dat'.
The minimum record length was 58.
The maximum record length was 59.
NOTE: The data set WORK.LOGSAMPLE has 5 observations and 12
variables. 10
NOTE: DATA statement used (Total process time):
real time 0.21 seconds 11
cpu time 0.03 seconds
9
10 proc sort data=logsample; 12
11 by LastName;
12 run;
NOTE: There were 5 observations read from the data set
WORK.LOGSAMPLE.
NOTE: The data set WORK.LOGSAMPLE has 5 observations and 12
variables. 13
NOTE: PROCEDURE SORT used (Total process time):
real time 0.01 seconds
cpu time 0.01 seconds
13
14 proc print data=logsample; 14
15 by LastName;
16 run;
NOTE: There were 5 observations read from the data set
WORK.LOGSAMPLE.
NOTE: PROCEDURE PRINT used (Total process time):
real time 0.03 seconds
cpu time 0.03 seconds
The SAS Log 165

Get SAS 9.4 Language Reference, 6th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.