143k views
4 votes
Which of the following statements is true regarding the SAS automatic variable ERROR?

a) It contains the number of syntax errors in the program.
b) It is automatically generated for every SAS program.
c) It indicates whether an error occurred during data input.
d) It holds the values of variables with errors.

1 Answer

6 votes

Final answer:

The SAS automatic variable ERROR indicates whether an error occurred during data input.

Step-by-step explanation:

The correct statement regarding the SAS automatic variable ERROR is option c) It indicates whether an error occurred during data input.

The ERROR automatic variable in SAS is automatically generated for every SAS program and it is used to indicate whether an error occurred during data input. It holds the value 0 if no errors occurred and a non-zero value if an error occurred.

For example, if there was a problem with reading a numeric value from a data set, the ERROR variable will hold a non-zero value, providing information that an error occurred during the data input process.

User Brownsoo Han
by
8.7k points

No related questions found