Processing Generation Data Sets

Overview

Once you have a generation group that contains more than one generation data set, you might want to select a particular data set to process. To select a particular generation, you use the GENNUM= data set option.
General form, GENNUM= data set option:
GENNUM=n
Here is an explanation of the syntax:
n
specifies a particular historical version of a data set:
  • n>0 is an absolute reference to a historical version by its generation number.
  • n<0 is a relative reference to a historical version.
  • n=0 is the current version.

Examples

To print the current version of the data, you do not need to use the GENNUM= option. Simply use code such as the following:
proc print data=year; ...

Get SAS Certification Prep Guide, 4th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.