4. data course100; merge course101 course102 ; by COURSE_ID; run;
Correct Answer : Get Lastest Questions and Answer : Explanation: Again you need to observe generated output in Course100 - Results are sequential, Hence By statement certainly used. Hence, option 1 is out. - New dataset course100 contains all the variables from both course101 and course102 - All the observations are present from both the dataset. All above is possible using interleaving, which requires a list of data set names in the SET statement and one or more BY variables in the BY statement.
Question : You have been given below dataset
You execute below program, which of the generated output is correct? data course100; set course101 course102; run;
Correct Answer : Get Lastest Questions and Answer : Explanation: As program and input dataset is given than it would be relatively easier for you to find the result. - This is an example of concatenation where one dataset will be appended to another dataset. - Output should contains all the rows from input datasets, hence option 3 and 4 is out. - All the variables should be present from the input datasets. Hence, option 2 is out.
Question : You have been given below two datasets
And you have below program data course100; set course101 course102; run;
What will be the value of the fee in 2nd observation when program executed?
Correct Answer : Get Lastest Questions and Answer : Explanation: As you are applying concatenation operation using SET. As you can see forst data set does not have any value for the FEE column. Hence it will not have any value for Fee for the first 4 observations.
1. SAS converts the values of SalaryRate to numeric values. No message is written to the log. 2. SAS converts the values of SalaryRate to numeric values. A message is written to the log. 3. SAS converts the values of Time to character values. No message is written to the log. 4. SAS converts the values of Time to character values. A message is written to the log.