By admin | September 21, 2009

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.

3 comments | Add One

  1. admin - 09/21/2009 at 10:57 am

    A

  2. sowmya - 12/21/2010 at 9:22 pm

    Can some one please explain this…

  3. sameer - 04/21/2011 at 8:00 am

    the length would change only if the length statement was before the set statement

Leave a Comment

Leave a Reply

Your email address will not be published.