SAS Certified Base Programmer 123 Questions (33)
The contents of the raw data file TEAM are listed below:
----|----10---|----20---|----30 Janice 10 Henri 11 Michael 11 Susan 12
The following SAS program is submitted:
data group; infile 'team'; input name $15. age 2.; file 'file-specification'; put name $15. =5 age 2.; run;
Which one of the following describes the output created?
A. a raw data file only
B. a SAS data set named GROUP only
C. a SAS data set named GROUP and a raw data file
D. No output is generated as the program fails to execute due to errors.
Topics:
SAS Base Questions |
7 Comments »
C
Hi,
can someone explain how the ‘=5 age 2.;
‘ in the put statement is executed without error……..i thought the answer is D….if any one is very sure please explain me how come the answer is c
“http://sasreporter.blogspot.com/2009/07/sas-certification-sample-questions_29.html”
it shouldn’t have “=5” I guess, and you can get answer C
“http://www.pinggu.org/bbs/thread-888001-1-1.html”
or change “=5” to “+5” meaning move pointer 5 bytes to the right
D
No output
=5 need to change +5
yes sudha is correct .
i think in put statement =5 means error in the SAS LOG as it is syntax error.
so either it should be +5 or @5. but it can nver be =5