Given the data set WORK.DEPARTMENTS:
The following SAS program is submitted:
Which output will be generated?
Given the SAS data set WORK. PRODUCTS:
The following SAS program is submitted:
data WORK. REVENUE (drop=Sales Returns);
set WORK. PRODUCTS (keep=ProdId Price Sales Returns);
Revenue-Price* (Sales-Returns);
run;
How many variables does the WORK.REVENUE data set contain?
The SAS data set WORK.ONE contains a numeric variable named Num and a character variable named Char:
The following SAS program is submitted:
proc print data=WORK.ONE;
where Num=contains (1);
run;
Which output is generated?
When SAS encounters a data when reading from a raw data file, which action will occur?
Given the following data set WORK.TOYS:
The following SAS program s submitted:
data WORK.GROUPS;
set WORK.TOYS;
if Product=''Cards'' then Group_Desc=''Indoors'';
else if Product in (''Drum'', ''Recorder'') then Group_Desc=''Instruments'';
else if Product=''Ball'' then Group_Desc=''Outdoors'';
run;
proc print data=WORK.GROUPS noobs;
run;
Which output is produced?
Currently there are no comments in this discussion, be the first to comment!