Which of the following is not used to read inline data?
-
DATALINES
-
CARDS
-
CARDS4
-
DATAIN
Reveal answer
Fill a bubble to check yourself
D
Correct answer
Explanation
SAS uses DATALINES (or its synonym CARDS) and CARDS4 (for data containing semicolons) to read inline data following the data step. DATAIN is not a valid SAS statement.
AI explanation
SAS reads inline data using DATALINES (and its synonym CARDS), or CARDS4/DATALINES4 when the data itself may contain semicolons. DATAIN is not a real SAS statement for this purpose, which is why it's the odd one out. Each of the other three is a documented keyword that tells the DATA step where the raw data lines begin.