Specifies a particular generation of a SAS data set.
Valid in: | DATA step and PROC steps |
Category: | Data Set Control |
Restriction: | Use with input data sets only. |
is a number that references a specific version from a generation group. Specifying a positive number is an absolute reference to a specific generation number that is appended to the name of a data set. Specifying a negative number is a relative reference to a historical version in relation to the base (current) version, from the youngest to the oldest. Typically, a value of 0 refers to the base version.
proc print data=air (gennum= -2); run;
proc print data=a(gennum=3); run;
proc print data=a(gennum=-3); run;