- Which observation or observations will be selected by the following WHERE statement?
where Job_Title contains 'I';
Obs |
Last_Name
|
First_Name |
Country |
Job_Title |
1 |
Wu |
Christine |
AU |
Sales Rep I |
2 |
Stone |
Kimiko |
AU |
Sales Manager |
3 |
Hoffman |
Fred |
AU |
Insurance Sales |
- Which statement in a PROC SORT step prepares data to be displayed as shown in this output?
The SAS System |
Postal_Code |
Employee_ID |
92129 |
121074 |
92129 |
121001 |
92128 |
121128 |
92128 |
120755 |
92128 |
120730 |
- Which statement about this PROC SORT step is true?
proc sort data=orion.staff;
out=work.staff;
by descending Salary
Manager_ID;
run;
- Which of the following statements selects from a data set only those observations for which the value of the variable Style is RANCH, SPLIT, or TWOSTORY?
- Which of the following statements selects rows in which Amount is less than or equal to $5,000 or Rate equals 0.095.
- When you run this code, which title or titles appear in the last PROC PRINT output?
title1 'The First Line';
title2 'The Second Line';
proc print data=orion.sales;
run;
title2 'The Next Line';
proc print data=orion.sales;
run;
title 'The Top Line';
proc print data=orion.sales;
run;
- Which program creates the output shown here?
The SAS System |
Obs |
EMP ID |
Employee
Hire Date
|
1 |
120101 |
01JUL2003 |
2 |
120102 |
01JUN1989 |
3 |
120103 |
01JAN1974 |
4 |
120104 |
01JAN1981 |
5 |
120105 |
01MAY1999 |
6 |
120106 |
01JAN1974 |
- Which BY statement is valid for this PROC PRINT step?
proc sort data=orion.staff
out=work.staffsort;
by Gender Start_Date;
run;
proc print data=work.staffsort label;
by _____________________________;
label Start_Date='Start';
run;
- Suppose you already ran the first program, which created a one-page report. Next, you want to run the second program. What will appear at the top of the second report?
title1 'RADIX Company';
title3 'DVD Sales';
proc print data=radix.sales;
where UnitSold>=30;
run;
title2 'Best Sales;
title;
proc print data=radix.staff;
where Sales>25000;
run;
- Which statement about this program is true?
proc print data=orion.sales;
var Employee_ID Salary;
where Country='AU';
by Gender;
label Salary='Annual Salary';
run;
|