BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
zihdonv19
Quartz | Level 8

zihdonv19_0-1592247922449.png

 

Could someone explain why this question choose option B? (Confused about the "@"...)

 

Thanks!

 

1 ACCEPTED SOLUTION

Accepted Solutions
Mark2010
SAS Employee

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

View solution in original post

5 REPLIES 5
Kurt_Bremser
Super User

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.

Astounding
PROC Star

Option B is incorrect.  As you probably suspect, the answer should be A.

 

 

Mark2010
SAS Employee

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

zihdonv19
Quartz | Level 8
Thanks for your reminder!
Indeed, i'm preparing for the SAS base programming test. Probably the workbook i currently use is quite old... i was also confused when i saw this question as i noticed that the exam content guild does not have this point...
Anyways, it's clear now!
ballardw
Super User

@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 @.

Welcome to the Certification Community

 

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

 

Why Get SAS Certified.jpg

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 5 replies
  • 1123 views
  • 1 like
  • 5 in conversation