ElearnSAS.com

ElearnSAS.com
SAS Learning Platform

Base SAS 5

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.;
run;
Which one of the following is the value of the SALARY variable?
A. 1234
B. 1,234
C. $1,234
D. . (missing numeric value)Click Comment link to get answer

34 comments:

  1. Anonymous11:35 AM

    Repeat question answer is D.

    ReplyDelete
  2. Anonymous9:17 AM

    D,
    should have been DOLLAR6. informat.

    ReplyDelete
  3. Anonymous5:29 AM

    Answer is D should have been use DOLLAR OR COMMA

    ReplyDelete
  4. swapna1:43 PM

    The answer id D missing numeric , it is not repeated question

    ReplyDelete
  5. Anonymous8:21 PM

    Answer is D
    Read in using Dollar format or read in as a character.

    ReplyDelete
  6. Anonymous9:36 PM

    If it is supposed to use DOLLARw.d and we use COMMAw.d, the results will be similar but without the dollar sign. I suppose the result will be 1234, if we use 6. rather than DOLLAR6. Why missing value?

    ReplyDelete
    Replies
    1. Anonymous3:32 PM

      As the program says it is a number SAS will expect a number instead of ($)character. That's the reason the result window shows the missing value and the log window explain what happened really.
      All the versions of did not do the automatic conversion;The older version of sas cannot convert them automatically.

      Delete
  7. Anonymous10:23 PM

    I think the answer is D,

    B & C are out as there cannot be any , or $ in the data.
    I opted A out as without the proper informat Dollarw.d, SAS will not be able to read the non standard data $ and ,.

    Can the admin plz answer this?

    ReplyDelete
  8. Anonymous8:12 PM

    Sakar Sham;

    Some where we said automatic conversion, this rule does not apply on Dollars sign?

    ReplyDelete
  9. Jahangir11:11 PM

    Jahangir
    Answer: D

    ReplyDelete
  10. Answer: D

    Check out the below question I just posted on my blog that's geared towards the Base SAS Certification exam.

    http://sascert3.blogspot.com/2013/03/base-sas-example-question-31.html

    Good luck!

    ReplyDelete
  11. Anonymous1:28 PM

    Hi Sakar Sham,
    Automatic conversion happens only when we do a computation which can be done only by numeric variables.

    ReplyDelete
  12. For latest and updated SAS certification dumps in PDF format contact us at completeexamcollection@gmail.com.
    Refer our blog for more details: http://completeexamcollection.blogspot.in/2015/12/sas-certification-dumps.html

    ReplyDelete
  13. Anonymous9:57 AM

    why ans D??
    can u explain?/

    ReplyDelete
  14. Hello everybody.
    I really like you post.
    I would like to share page collection with you!
    gclub
    gclub casino online

    ReplyDelete
  15. Well Said, you have furnished the right information that will be useful to anyone at all time. Thanks for sharing your Ideas.


    SAS Online Training
    Tableau Online Training|
    R Programming Online Training|

    ReplyDelete
  16. Your blog is very useful for me,Thanks for your sharing.

    ดูหนังออนไลน์

    ReplyDelete
  17. Navodaya Selection test 2019 for 9th class vacant admission seats was going to start. Recently the chancellor of Navodaya vidyalaya samithi has give the press advertisement for downloading the hall tickets and
    Navodaya Admit Card 2019 class 6th. Along with them the admission test date, venues are also declared.

    ReplyDelete
  18. Option A & B are not possible as character variable name will take Joe as value & numeric variable number will try to take xx as value. But since xx is character value and implicit type conversion is not possible hence it will give missing value. Option D is not possible as it's a data error & not compile time error. Program will not execute in compile time error & will throw an error while in case of data error code will be executed with message in log.

    ReplyDelete