SYSNOBS Automatic Macro Variable

Contains the number of observations read from the last data set that was closed by the previous procedure or DATA step.
Type: Automatic macro variable (read only)

Details

The SYSNOBS contains the number of observations read from the last data set that was closed by the previous procedure or DATA step.
Note: If the number of observations for the data set was not calculated by the previous procedure or DATA step, the value of SYSNOBS is set to -1.