Creating a Basic Report

To produce a simple list report, you first reference the library where your SAS data set is stored. You can also set system options to control the appearance of your reports. Then you submit a PROC PRINT step.
Syntax, PROC PRINT step:
PROC PRINT DATA=SAS-data-set;
RUN;
SAS-data-set is the name of the SAS data set to be printed.
In the program below, the PROC PRINT statement invokes the PRINT procedure and specifies the data set Therapy in the SAS library to which the libref Patients has been assigned.
libname patients 'c:\records\patients'; 
proc print data=patients.therapy; 
run;
Notice the layout of the resulting report below. These are the default behaviors:
  • All observations and variables in the data ...

Get SAS Certification Prep Guide, 4th 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.