This topic contains 0 replies, has 1 voice, and was last updated by  blogger rudra 5 months, 1 week ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #146

    blogger rudra
    Keymaster

    data work.total;
    set work.salary(keep = department wagerate);
    by department;
    if first.department then payroll = 0;
    payroll + wagerate;
    if last.department;
    run;

    The SAS data set named WORK.SALARY contains 10 observations for each department, currently ordered by DEPARTMENT.

    Which one of the following is true regarding the program above?

    A. The BY statement in the DATA step causes a syntax error.
    B. FIRST.DEPARTMENT and LAST.DEPARTMENT are variables in the WORK.TOTAL data set.
    C. The values of the variable PAYROLL represent the total for each department in the WORK.SALARY data set.
    D. The values of the variable PAYROLL represent a total for all values of WAGERATE in the WORK.SALARY data set.

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.