employee bonus 2542 100.00 3612 133.15 2198 234.34 2198 111.12 The following SAS program is submitted:
proc sort data=employee_info; (insert BY statement here) run;
Which one of the following BY statements completes the program and sorts the data in sequential order bydescending bonus values within ascending employee values?
Explanation: You use the keyword DESCENDING in a BY statement to specify that data will be sorted by values in descending order. The DESCENDING keyword applies to the variable that is listed immediately after it. To sort on values of bonus within sorted values of employee, you list employee first in the BY statement.
Question :
Assume the SAS data set Sasuser.Houses has four numeric variables. The following SAS program is submitted:
proc means data=sasuser.houses mean; (insert statement(s) here)run; The following report is produced: Which of the following statement(s) create(s) this report? 1. class style; 2. var bedrooms baths; 3. Access Mostly Uused Products by 50000+ Subscribers var bedrooms baths; 4. . var style; class bedrooms baths;
Explanation: The CLASS statement specifies the category variable(s) for group processing. The VAR statement specifies the numeric variable(s) for which to calculate statistics.
Question :
The following SAS program is submitted:
data work.accounting; length jobcode $ 12; set work.department;run;
The Work.Department SAS data set contains a character variable named jobcode with a length of 5. Which of the following is the length of the variable jobcode in the output data set? 1. 5 2. 8 3. Access Mostly Uused Products by 50000+ Subscribers 4. The value cannot be determined because the program fails to execute due to syntax errors.
Explanation: The LENGTH statement enables you to specify the length of a character variable. Since the LENGTH statement appears before the SET statement, SAS will set the length of jobcode to 12.