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';
Answer is D.
ReplyDeleteD is theclosest, but don't we use file statement to write out to a sas file?
ReplyDeletethe 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.
ReplyDeleteThe 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'
ReplyDeleteCORRECTION: 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'
ReplyDeleteThe answer is B because INCLUDE is used to open an external file in SAS Editor window and it ends with a semicolon.
ReplyDeleteINCLUDE command (not a SAS statement) does not need semicolon at the end.
DeleteSo the answer is A
DeleteA
ReplyDeleteThe INCLUDE command copies the entire contents of an external file into the current window.
ReplyDeleteINFILE 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
A
ReplyDeleteFor latest and updated SAS certification dumps in PDF format contact us at completeexamcollection@gmail.com.
ReplyDeleteRefer our blog for more details http://completeexamcollection.blogspot.in/2015/12/sas-certification-dumps.html
To use include don't you have to use %include rather than just include.
ReplyDeleteFor latest and updated SAS certification dumps in PDF format contact us at completeexamcollection@gmail.com.
ReplyDeleteRefer our blog for more details
http://completeexamcollection.blogspot.in/2015/12/sas-certification-dumps.html