Learning More
Automatic variable _N_
provides a way to count
the number of times SAS executes a DATA step. For more information,
see Writing Lines to the SAS Log or to an Output File.
SAS creates _N_ in
each DATA step. The first time SAS begins to execute the DATA step,
the value of _N_ is 1. The second time SAS begins to execute, the
value is 2, and so on. SAS does not add _N_ to the output data set.
Using _N_ is more efficient than using a Sum statement.
DO groups
specifies a group of
statements that are executed as a unit. For information about
DO group processing, see Finding Shortcuts in Programming. For more information
about the DO statement, see “DO Statement” in SAS Statements: Reference.
END= option
can be used in a SET statement. ...
Get Step-by-Step Programming with Base SAS 9.4 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.