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
This comment has been removed by the author.
ReplyDeleteThis comment has been removed by the author.
ReplyDelete'B'
ReplyDeletethe answer should be 'D' because we have to specify file specification in the quotes thats why the answer is D.
ReplyDeleteB
ReplyDeleteThe Answer must be D because we can't put file specification without quation ''.
ReplyDeleteD
ReplyDeleteB ... for sure... just checked it in SAS 9.0
ReplyDeleteB as we are mentioning the fileref and not external file.
ReplyDeleteB. the following works fine:
ReplyDeletelibname rawdata1 'c:\';
filename rawdata2 'c:\employee.txt';
data work.testdata;
infile rawdata2;
input sales1 $ sales2;
run;
d is corect
ReplyDeletebecaues without quotation mark (" ") this it shows error (ERROR: No logical assign for filename RAWDATA.
)
plz explain y it is B and not D. can we omit qoutations?
ReplyDeletebecoz of the filename statement mentioned in the program, there is no need to enclose rawdata2 in quotation marks.
ReplyDeleteB for sure and explanation is no need quotation mark for infile or filename. but the location needs within the quotation mark.
ReplyDeletecan someone explain why it is rawdata2 but not rawdata1?
ReplyDeleteThe Answer is B for sure since if you have already intialized the path with a filename,you dont have to include quotation again.
ReplyDeletethanks
DeleteD
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
B
ReplyDeleteB
ReplyDelete