|
Answer» In a SAS DATA Step, there are two variables that are automatically created, namely, the _ERROR_ variable and the _N_ variable. - _N_: Typically, this variable is used to keep track of the number of times a data step has been iterated. It is set to 1 by default. The variable _N_ increases every time the data step of a data statement is iterated.
- _ERROR_: The VALUE is 0 by default and gives INFORMATION about any errors that OCCUR during execution. Whenever there is an error, such as an input data error, a math error, or a conversion error, the value is set to 1. This variable can be used to locate errors in data records and to display an error message in the SAS log.
|