Given the SAS data set AGES:
AGES
AGE
———
The variable AGE contains character values. The following SAS program is submitted:
data subset;
set ages;
where age> 12;
run;
How many observations are written out to the data set SUBSET?
A. 0
B. 1
C. 2
D. 3
A. is the correct answer. SAS defines the variable length in the descriptor portion through its first appearance. (or Variables attributes are decided as per its first occurrence). And therefore 9 decides the length of the character variable to one
btw question is incomplete :
Given the SAS data set AGES:
AGES
AGE
———
9
12
15
The variable AGE contains character values. The following SAS program is submitted:
data subset;
set ages;
where age> 12;
run;
How many observations are written out to the data set SUBSET?
A. 0
B. 1
C. 2
D. 3