proc report data=survey nowd; column age choice1; (insert DEFINE statement here) define choice1/display; run; Which one of the following DEFINE statements completes the program and displays values of the variable Age in ascending order?
Explanation: You use a DEFINE statement to describe how to order and use variables in your report. To specify Age as an order variable, you use the ORDER usage option in the DEFINE statement. An order variable orders the detail rows in a report according to their formatted values. By default, the order is ascending.
Question :
Which one of the following statements is true when SAS encounters a data error?
1. The execution phase is stopped, and a system abend occurs. 2. A missing value is assigned to the appropriate variable, and execution continues. 3. Access Mostly Uused Products by 50000+ Subscribers 4. A missing value is assigned to the appropriate variable, and execution stops at that point.
Explanation: Unlike syntax errors, invalid data errors do not cause SAS to stop processing a program. SAS handles invalid data errors by assigning a missing value to the appropriate variable and writing a message to the SAS log. [Data errors do not affect continue, just a few mistakes assignment is missing]
Question :
The following SAS program is submitted:
data test; input country $8. date mmddyy10.; cards; Germany 12/31/2000France 01/32/2001; run;
Which one of the following is the value of the variable _ERROR_ when the variable _N_ has a value of 2?
Explanation: _N_ and _ERROR_ are automatic variables that can be used for DATA step processing but that are not written to the output data set. _N_ counts the number of times that the DATA step begins to execute, and _ERROR_ signals the occurrence of an error that is caused by the data during execution. A value of 0 indicates no error while a value of 1 indicates one or more errors. In the program above, the value for date in the second observation is invalid. Data Error 32 will cause _error_ = 1
1. The value of the DESCRIPTION variable is No Probl. 2. The value of the DESCRIPTION variable is Problems. 3. Access Mostly Uused Products by 50000+ Subscribers 4. The value of the DESCRIPTION variable can not be determined.