Question: Consider the following SAS data step: data result; input Type C1 C2 ; datalines; 502 731 .00 ; proc print; Display appearance of the output
Consider the following SAS data step:
data result;
input Type C1 C2 ;
datalines;
502 731
.00
;
proc print;
Display appearance of the output from the print if each of the following sets of statements, respectively, appeared between input and datalines; when the program is executed:
a. Index = (2*C1) + C2;
b. if Type <= 6 then do;
Index = (2*C1) + C2;
output;
end;
c. if Type <= 6 then do;
Index = (2*C1) + C2;
end;
else delete;
d. if Type > 6 then delete;
e. if Type > 6 then delete;
Index = (2*C1) + C2;
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
