-
Notifications
You must be signed in to change notification settings - Fork 5
Generic Example
Shane Rosanbalm edited this page Mar 18, 2016
·
15 revisions
This example is based on sas-codebook\ExampleFiles\test_generic.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_generic(data=examples.cars)
The first page of the resulting PDF report is pictured below. The full PDF file is available here.
