Saturday, March 23, 2013

Base SAS Example Question 3.1

Anyone know the answer to the below question? Leave your answer as a comment, and I'll post the solution once we get at least 3 responses.

Remember, all these example questions I post are similar to questions that would appear on the Base SAS Certification exam. If you can answer these correctly, you can crack the questions on test day!

Good luck!
SAS Cert

-------------------------------------------------

Which of the below lines opens an external SAS file?

a) include 'd:\programs\sas\newprog.sas'
b) include 'd:\programs\sas\newprog.sas';
c) file 'd:\programs\sas\newprog.sas'
d) file 'd:\programs\sas\newprog.sas';

14 comments:

  1. D is theclosest, but don't we use file statement to write out to a sas file?

    ReplyDelete
  2. the answer is D, we use the file statement to first initiate and create/open a new file and then we use a put statement for entering in the new new variables.

    ReplyDelete
  3. The Answer is A. Looking at the options, the question is trying to compare FILE and INCLUDE options used on the command line. INCLUDE is used to open an external (in external directory) file in SAS Editor window. FILE statement is used to 'reference' not 'open'

    ReplyDelete
  4. CORRECTION: The Answer is A. Looking at the options, the question is trying to compare FILE and INCLUDE options used on the command line. INCLUDE is used to open an external (in external directory) file in SAS Editor window. FILE statement is used to 'identify' not 'open'

    ReplyDelete
  5. The answer is B because INCLUDE is used to open an external file in SAS Editor window and it ends with a semicolon.

    ReplyDelete
    Replies
    1. INCLUDE command (not a SAS statement) does not need semicolon at the end.

      Delete
    2. So the answer is A

      Delete
  6. The INCLUDE command copies the entire contents of an external file into the current window.

    INFILE opens an external file for input
    INPUT reads from the current input file

    from this information I THINK THE ANSWER IS D.

    for more info please follow the below links
    FOR INCLUDE: http://support.sas.com/onlinedoc/913/docMainpage.jsp
    FOR FILE : http://ciser.cornell.edu/sasdoc/saspdf/iml/chap7.pdf

    ReplyDelete
  7. 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
  8. To use include don't you have to use %include rather than just include.

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