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?
- No messages are written to the SAS log.
- ERROR and WARNING messages are written to the SAS log.
- Data set THREE is created with two variables and 50 observations.
- Data set THREE is created with three variables and 100 observations.
Reveal Solution Next Question