SAS Certified Base Programmer 50 Questions (46)
A raw data record is listed below.
1---+----10---+----20---+--- $23,456 750
The following SAS program is submitted:
data bonus; infile 'file-specification'; input salary $ 1-7 raise 9-11; <insert statement here> run;
Which one of the following statements completes the program and adds the values of salary and raise to calculate the expected values of the newsalary variable?
a. newsalary=salary + raise;
b. newsalary=put(salary,comma7.) + raise;
c. newsalary=input(salary,comma7.) + raise;
d. newsalary=put(salary,comma7.) + put(raise,3.);
Topics:
SAS Base Questions |
1 Comment »
C