nerdexam
SAS_Institute

A00-212 · Question #82

The variable attributes of SAS data sets ONE and TWO are shown below: ONE TWO # Variable Type Len Pos # Variable Type Len Pos 2 sales Num 8 8 2 budget Num 8 8 1 year Num 8 0 3 sales Char 8 16 1 year…

The correct answer is B. ERROR and WARNING messages are written to the SAS log. See the full explanation below for the reasoning.

Question

The variable attributes of SAS data sets ONE and TWO are shown below:

ONE TWO # Variable Type Len Pos # Variable Type Len Pos 2 sales Num 8 8 2 budget Num 8 8 1 year Num 8 0 3 sales Char 8 16 1 year Num 8 0 Data set ONE contains 100 observations. Data set TWO contains 50 observations. Both data sets are sorted by the variable YEAR. The following SAS program is submitted:

data three; merge one two; by year; run; Which one of the following is the result of the program execution?

Options

  • ANo messages are written to the SAS log.
  • BERROR and WARNING messages are written to the SAS log.
  • CData set THREE is created with two variables and 50 observations.
  • DData set THREE is created with three variables and 100 observations.

How the community answered

(34 responses)
  • A
    3% (1)
  • B
    85% (29)
  • C
    3% (1)
  • D
    9% (3)

Community Discussion

No community discussion yet for this question.

Full A00-212 Practice