Multiple choice technology programming languages

What is true about ERROR statement

  1. It will be initialised to 1 in the begining

  2. It will have the observation number that caused the error

  3. It will not be dropped while writing into the dataset

  4. It can be used in expressions

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

The ERROR automatic variable in SAS can be used in IF statements and other expressions within the DATA step. It's NOT initialized to 1 at the beginning (it's 0), doesn't hold the observation number, and CAN be dropped from output datasets depending on logic. Its main use is in conditional expressions.