By admin | August 10, 2009

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.);

One comment | Add One

  1. admin - 08/10/2009 at 10:01 am

    C

Leave a Comment

Leave a Reply

Your email address will not be published.