SAS Certified Base Programmer 123 Questions (37)
The SAS data set named COMPANY.PRICES is listed below:
COMPANY.PRICES
prodid | price | producttype | sales | returns |
K12S | 5.10 | NETWORK | 15 | 2 |
B132S | 2.34 | HARDWARE | 300 | 10 |
R18KY2 | 1.29 | SOFTWARE | 25 | 5 |
3KL8BY | 6.37 | HARDWARE | 125 | 15 |
DY65DW | 5.60 | HARDWARE | 45 | 5 |
DGTY23 | 4.55 | HARDWARE | 67 | 2 |
The following SAS program is submitted:
libnamecompany 'SAS-data-library'; data hware inter soft; set company.prices (keep = producttype price); if price le 5.00; if producttype = 'HARDWARE' then output HWARE; else if producttype = 'NETWORK' then output INTER; else if producttype = 'SOFTWARE' then output SOFT; run;
How many observations does the HWARE data set contain?
A. 0
B. 2
C. 4
D. 6
Topics:
SAS Base Questions |
2 Comments »
B
B