ElearnSAS.com

ElearnSAS.com
SAS Learning Platform

Base SAS 111

The following SAS program is submitted:
libname rawdata1 'location of SAS data library';
filename rawdata2 'location of raw data file';
data work.testdata;
infile
input sales1 sales2;
run;
Which one of the following is needed to complete the program correctly?
A. rawdata1
B. rawdata2
C. 'rawdata1'
D. 'rawdata2'
Click Comment link to get answer

21 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete
  3. Anonymous1:24 AM

    the answer should be 'D' because we have to specify file specification in the quotes thats why the answer is D.

    ReplyDelete
  4. Anonymous6:11 PM

    The Answer must be D because we can't put file specification without quation ''.

    ReplyDelete
  5. Anonymous6:48 AM

    B ... for sure... just checked it in SAS 9.0

    ReplyDelete
  6. B as we are mentioning the fileref and not external file.

    ReplyDelete
  7. Anonymous11:23 AM

    B. the following works fine:
    libname rawdata1 'c:\';
    filename rawdata2 'c:\employee.txt';
    data work.testdata;
    infile rawdata2;
    input sales1 $ sales2;
    run;

    ReplyDelete
  8. d is corect
    becaues without quotation mark (" ") this it shows error (ERROR: No logical assign for filename RAWDATA.
    )

    ReplyDelete
  9. Anonymous3:26 PM

    plz explain y it is B and not D. can we omit qoutations?

    ReplyDelete
  10. Anonymous3:57 PM

    becoz of the filename statement mentioned in the program, there is no need to enclose rawdata2 in quotation marks.

    ReplyDelete
  11. Anonymous4:48 PM

    B for sure and explanation is no need quotation mark for infile or filename. but the location needs within the quotation mark.

    ReplyDelete
  12. Anonymous2:03 AM

    can someone explain why it is rawdata2 but not rawdata1?

    ReplyDelete
  13. Krupa2:45 PM

    The Answer is B for sure since if you have already intialized the path with a filename,you dont have to include quotation again.

    ReplyDelete
  14. 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