Could someone explain why this question choose option B? (Confused about the "@"...)
Thanks!
As fun as it is to use INPUT and INFILE to read raw data sets, I see that this has been posted in the "Certification" section rather than the generic "Programming" section of the community. Which leads me to believe that you are looking at this to prepare for certification. So I'll point out that INPUT/INFILE are no longer tested on any SAS exam. You can see the topics for our exams in the Exam Content Guide posted for each credential on www.sas.com/certify.
The trailing '@' is a "line hold", which keeps the line and column pointer for the next input statement. At the end of the data step iteration, the line would advance automatically. A double '@@' would prevent even that.
Option B is incorrect. As you probably suspect, the answer should be A.
As fun as it is to use INPUT and INFILE to read raw data sets, I see that this has been posted in the "Certification" section rather than the generic "Programming" section of the community. Which leads me to believe that you are looking at this to prepare for certification. So I'll point out that INPUT/INFILE are no longer tested on any SAS exam. You can see the topics for our exams in the Exam Content Guide posted for each credential on www.sas.com/certify.
@Astounding wrote:
Option B is incorrect. As you probably suspect, the answer should be A.
There is a second unconditional Input statement and previous conditional inputs do not end in @.
This is a knowledge-sharing community for SAS Certified Professionals and anyone who wants to learn more about becoming SAS Certified. Ask questions and get answers fast. Share with others who are interested in certification and who are studying for certifications.To get the most from your community experience, use these getting-started resources:
Community Do's and Don'ts
How to add SAS syntax to your post
How to get fast, helpful answers
Ready to level-up your skills? Choose your own adventure.