-
Notifications
You must be signed in to change notification settings - Fork 5
Vertical Example
Shane Rosanbalm edited this page Mar 18, 2016
·
7 revisions
This example is based on sas-codebook\ExampleFiles\test_vertical.sas.
It utilizes the dataset sas-codebook\ExampleFiles\cars.sas7bdat.

In the SAS program, edit the &zippath macro variable to point to the location in which you extracted the sas-codebook zip file. This location is used in both the SASAUTOS and LIBNAME definitions.
*---------- tell SAS where you put everything ----------;
%let zippath = H:\GitHub\sas-codebook;
options sasautos=("&zippath\Macros" sasautos);
libname examples "&zippath\ExampleFiles";
*---------- run the macro on the local copy of the CARS dataset ----------;
%codebook_vertical
(data=examples.cars
,by=make
,var=drivetrain msrp horsepower mpg_city length
)
The first page of the resulting PDF report is pictured below. The full PDF file is available here.
