Which one of the fo...
 
Notifications
Clear all

Which one of the following is the result of the above program?

1 Posts
1 Users
0 Likes
129 Views
(@velvertonernest)
Posts: 699
Noble Member
Topic starter
 

The following SAS program is submitted:

data work.totalsales;

set work.monthlysales(keep = year product sales);

retain monthsales {12} ;

array monthsales {12} ;

do i = 1 to 12;

monthsales{i} = sales;

end;

cnt + 1;

monthsales{cnt} = sales;

run;

The data set named WORK.MONTHLYSALES has one observation per month for each of five years for a total of 60 observations.

Which one of the following is the result of the above program?

  • A . The program fails execution due to data errors.
    B. The program fails execution due to syntax errors.
    C. The program runs with warnings and creates the WORK.TOTALSALES data set with 60 observations.
    D. The program runs without errors or warnings and creates the WORK.TOTALSALES data set with 60 observations

Show Answer Hide Answer

Suggested Answer: B
 
Posted : 04/11/2022 6:25 am

Latest SAS Institute A00-211 Dumps Valid Version

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund
Share: