skip to Main Content

Quiz 2 SAS pro

Name
Email
1. 
Which of the following DATA steps correctly reads the permanent dataset orders from the sales library and creates a new data set named orders2 in the same library?

2. 
Which of the following is a valid name for a character format?

3. 
Which of the following statements is true about merging SAS data sets by using the DATA step?

4. 
What is the syntax error in this DATA step?

data qtr1;
    set returns_jan(rename=(ID=CustID) (Return=Item))
        returns_feb(rename=(Dt=Date))
    returns_mar;
 

 
 
5. 
If you run this DATA step, what observations does the dataset bonuses contain?

data bonuses;

        merge managers (in=M)

                   staff (in=S);

     by EmpID;

     if M=0 and S=1;

Back To Top