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?
- 5
- Get all Questions and Answer from here
- You need to have paid subscription to access all questions
- 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.