By admin | September 9, 2009

SAS Certified Base Programmer 123 Questions (33)

The contents of the raw data file TEAM are listed below:

----|----10---|----20---|----30
Janice 10
Henri 11
Michael 11
Susan 12

The following SAS program is submitted:

data group;
    infile 'team';
    input name $15. age 2.;
    file 'file-specification';
    put name $15. =5 age 2.;
run;

Which one of the following describes the output created?

A. a raw data file only
B. a SAS data set named GROUP only
C. a SAS data set named GROUP and a raw data file
D. No output is generated as the program fails to execute due to errors.

7 comments | Add One

  1. admin - 09/9/2009 at 1:21 pm

    C

  2. sudha - 12/6/2010 at 7:13 am

    Hi,

    can someone explain how the ‘=5 age 2.;
    ‘ in the put statement is executed without error……..i thought the answer is D….if any one is very sure please explain me how come the answer is c

  3. Yifei - 12/28/2010 at 2:34 am

    “http://sasreporter.blogspot.com/2009/07/sas-certification-sample-questions_29.html”

    it shouldn’t have “=5” I guess, and you can get answer C

  4. Yifei - 12/28/2010 at 2:40 am

    “http://www.pinggu.org/bbs/thread-888001-1-1.html”

    or change “=5” to “+5” meaning move pointer 5 bytes to the right

  5. MYK - 02/18/2011 at 9:07 am

    D

    No output

    =5 need to change +5

  6. urvish - 02/22/2011 at 10:08 am

    yes sudha is correct .
    i think in put statement =5 means error in the SAS LOG as it is syntax error.

  7. urvish - 02/22/2011 at 10:09 am

    so either it should be +5 or @5. but it can nver be =5

Leave a Comment

Leave a Reply

Your email address will not be published.