Question 44 :

 The following SAS DATA step is submitted:

 data work.accounting;

 set work.department;

 length jobcode $ 12;

 run;

 The WORK.DEPARTMENT SAS data set contains a character variable named JOBCODE with a length of 5.

 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 : This is the log error after we run this program.

 /* WARNING: Length of character variable has already been set.

 Use the LENGTH statement as the very first statement in the DATA STEP to declare the length

 of a character variable.

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