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

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; ...

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