Multiple choice technology programming languages

data work.company; set work.dept1(keep=jobcode) work.dept2(rename=(jcode=jobcode)); run; which one of the following is the result?

  1. The variable JCODE is written to the output data set

  2. The variable JOBCODE is written to the output data set

  3. Neither variable JCODE nor JOBCODE is written to the output dataset

  4. The program fails to execute due to errors

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The code merges/concatenates two datasets. dept1 keeps jobcode, and dept2 renames jcode to jobcode. The common variable written to the output dataset is jobcode. The original name jcode is not written as it was renamed.