SAS Certified Base Programmer 123 Questions (64)
The following SAS DATA step is submitted:
data work.accountting; 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?
A. 5
B. 8
C. 12
D. The length can not be determined as the program fails to execute due to errors.
Topics:
SAS Base Questions |
3 Comments »
A
Can some one please explain this…
the length would change only if the length statement was before the set statement