![]() Chapter Contents |
![]() Previous |
![]() Next |
| GENNUM= |
| Valid in: | DATA step and PROC steps |
| Category: | Data Set Control |
| Syntax | |
| Syntax Description | |
| Details | |
| Examples | |
| Example 1: Requesting a Version Using an Absolute Reference | |
| Example 2: Requesting A Version Using a Relative Reference | |
| See Also | |
Syntax |
| GENNUM=integer |
| Details |
After generations for a data set have been requested using the GENMAX= data set option, use GENNUM= to request a specific version. For example, specifying GENNUM=3 refers to the historical version #003, while specifying GENNUM=-1 refers to the youngest historical version.
Note that after 999 replacements, the youngest version would be #999. After 1,000 replacements, SAS rolls over the youngest version number to #000. Therefore, if you want the historical version #000, specify GENNUM=1000.
For more details on generation data sets, see "SAS Data Sets" in SAS Language Reference: Concepts.
| Examples |
This example prints the historical version #003 for data set A, using an absolute reference:
proc print data=a(gennum=3); run;
The following PRINT procedure prints the data set three versions back from the base version:
proc print data=a(gennum-3); run;
| See Also |
| Data Set Option:
|
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.