By admin | October 13, 2009

SAS Certified Base Programmer 123 Questions (122)

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

----|----10---|----20---|----30
$1,234

The following SAS program is submitted:

data test;
    infile'amount';
    input @1 salary 6.;
    if _error_ then description='Problems';
    else desription='No Problems';
run;

Which one of the following is the value of the DESCRIPTION variable?

A. Problems
B. No Problems
C. ‘ ‘ (missing character value)
D. The value can not be determined as the program fails to execute due to errors.

7 comments | Add One

  1. admin - 10/13/2009 at 2:02 pm

    A

  2. susan - 08/20/2010 at 1:34 am

    I think the “p” in “problems” in the codes should be uppercase.

  3. admin - 08/21/2010 at 11:19 am

    @2 susan: thanks, it’s typo.

  4. chentail - 02/18/2013 at 3:28 pm

    _error_=1

    (1 is true)
    If true then execute …;

  5. cisse - 10/20/2013 at 5:47 pm

    student

  6. DeepthySajay - 12/24/2014 at 3:00 am

    I think its b.

  7. DeepthySajay - 12/24/2014 at 3:02 am

    No,its a there is a dollar sign in salary

Leave a Comment

Leave a Reply

Your email address will not be published.