Multiple choice technology programming languages

The variable JOBCODE has length \$5 in the dataset TEMP. The same variable present in the dataset TEMP1 and has length \$7. data temp2; set temp temp1; run; what would be the length of the variable JOBCODE in the dataset TEMP2?

  1. 5

  2. 7

  3. c) we can’t see the length as data set won’t be created due to errors.

  4. none

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

When concatenating datasets with SET, SAS uses the attributes (including length) from the first dataset listed. TEMP is listed first, where JOBCODE has length \$5. Therefore, the combined dataset TEMP2 inherits the length \$5 from TEMP, even though TEMP1 has length $7. This is a fundamental SAS behavior for dataset concatenation.