O'Reilly logo

SAS Certification Prep Guide, 4th Edition by SAS Institute

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Initiating Generation Data Sets

Overview

To initiate generation data sets and to specify the maximum number of versions to maintain, you use the output data set option GENMAX= when creating or replacing a data set. If the data set already exists, you can use the GENMAX= option with the DATASETS procedure and the MODIFY statement.
General form, DATASETS procedure, and MODIFY statement with the GENMAX= option:
PROC DATASETS LIB=libref <NOLIST>;
MODIFY SAS-data-set (GENMAX=n);
QUIT;
Here is an explanation of the syntax:
libref
is the library that contains the data that you want to modify.
NOLIST
suppresses the directory listing.
SAS-data-set
is the name of the SAS data set that you want to modify.
n
is the number of historical ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required