Question 43 :

 The following SAS program is submitted:

 data work.accounting;

 set work.dept1 work.dept2;

 run;

 A character variable named JOBCODE is contained in both the WORK.DEPT1 and WORK.DEPT2 SAS data sets. The variable

 JOBCODE has a length of 5 in the WORK.DEPT1 data set and a length of 7 in the WORK.DEPT2 data set.

 Which one of the following is the length of the variable JOBCODE in the output data set?

 

  1. 5
  2. Get all Questions and Answer from here
  3. You need to have paid subscription to access all questions
  4. Thanks for considering SAS Certification Material

 Correct Answer : 1

 Exp : The "set statement" takes the length of the common variable, as the length of that variable in the first dataset of set statement.

 The length of a variable always define automatically in the first statement and remain unchanged during the whole program until and unless we redefine it.

You can access to full explanation to question and answer from this page.