libname company '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?
Explanation: The if price le 5.00; limits the obs to the below obs out of which HARDWARE has two obs. B132S 2.34 HARDWARE 300 10 R18KY2 1.29 SOFTWARE 25 5 DGTY23 4.55 HARDWARE 67 2
Question :
The following SAS program is submitted:
proc datasets lib = sasuser; contents data = class varnum; quit;
Which one of the following is the purpose of the VARNUM option? 1. to print a list of variable names 2. to print the total number of variables 3. Access Mostly Uused Products by 50000+ Subscribers 4. to print a list of the variables in the order they were created