A00-231 Exam Question 71

The following SAS program is submitted:
data work.passengers;
if OrigPassengers = . then'
OrigPassengers = 100;
TransPassengers = 100;
OrigPassengers = .;
TotalPassengers = sum (OrigPassengers, TransPassengers) +0;
run;
What is the value of the TOTALPASSENGERS variable in the output data set?
  • A00-231 Exam Question 72

    The SAS data set EMPLOYEE_INFO is listed below:
    IDNumber Expenses
    2542 100.00
    3612 133.15
    2198 234.34
    2198 111.12
    The following SAS program is submitted:
    proc sort data = employee_info;
    run;
    Which one of the following BY statements completes the program and sorts the data sequentially by descending expense values within each descending IDNUMBER value?
  • A00-231 Exam Question 73

    The following SAS program is submitted:
    data work.empsalary;
    set work.people (in = inemp)
    work.money (in = insal);
    if insal and inemp;
    run;
    The SAS data set WORKPEOPLE has 5 observations, and the data set WORKMONEY has 7 observations.
    How many observations will the data set WORK.EMPSALARY contain?
  • A00-231 Exam Question 74

    The following SAS program is submitted:
    proc sort data = work.employee;
    by descending fname;
    proc sort data = work.salary;
    by descending fname;
    data work.empdata;
    merge work.employee
    work.salary;
    by fname;
    run;
    Why does the program rail to execute?
  • A00-231 Exam Question 75

    The following SAS program is submitted:
    data numrecords;
    infile 'file specification';
    input@1 patient $15. relative$ 16-26@;
    if relative = 'children' then
    input @54 diagnosis $15. @;
    else if relative = 'parents' then
    input @28 doctor $15. clinic $ 44-53
    @54 diagnosis $15. @;
    input age;
    run;
    How many raw data records are read during each iteration of the DATA step execution?