Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

SAS Exam A00-215 Topic 6 Question 43 Discussion

Actual exam question for SAS's A00-215 exam
Question #: 43
Topic #: 6
[All A00-215 Questions]

Given the data sets AMERICIAN NATIONAL and results in the data set BASEBALL shown below:

Which DATA step correctly creates the BASEBALL data set?

Show Suggested Answer Hide Answer
Suggested Answer: B

The correct answer is B. The set statement in SAS can concatenate multiple datasets together. The AMERICAN and NATIONAL datasets appear to have the same structure and variables, so the set statement without any options will combine them into one dataset called BASEBALL. The order of the datasets in the set statement determines the order of the observations in the output dataset, and since there is no variable that needs renaming to match between the two datasets, option B is the correct answer.


SAS documentation on the set statement.

Contribute your Thoughts:

Currently there are no comments in this discussion, be the first to comment!


Save Cancel