Correct Answer : Get Lastest Questions and Answer : Explanation: Variable length can be determined by its first reference. Here, in the given program FEETYPE first refer by FEETYPE=MEDIUM. Hence its length will be 6. If you want it to be set 8 than put the length statement before its first reference.
Question : In which of the following program either DROP or KEEP is wrongly used
Correct Answer : Get Lastest Questions and Answer : Explanation: All the columns marked in DROP= option will be discarded in the output statement. And there will not be any error for keeping both the KEEP= and DROP= overlapping. However, you should be more clear while writing the program that what option you want to keep and what option you want to discard.
1. The _ERROR_ variable contains the values 'ON' or 'OFF'. 2. The _ERROR_ variable contains the values 'TRUE' or 'FALSE'. 3. The _ERROR_ variable is automatically stored in the resulting SAS data set. 4. The _ERROR_ variable can be used in expressions or calculations in the DATA step.
1. The DATA step stops executing at the point of the error, and no SAS data set is created. 2. A note is written to the SAS log explaining the error, and the DATA step continues to execute. 3. A note appears in the SAS log that the incorrect data record was saved to a separate SAS file for further examination. 4. The DATA step stops executing at the point of the error, and the resulting DATA set contains observations up to that point.