BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
cosmid
Lapis Lazuli | Level 10

Hi, 

 

Run into a problem from the SAS Professional Prep Guide:

How many statements does the program below contain?

proc sql;
  select grapes, oranges,
            grapes + oranges as sumsales
  from certadv.produce
  order by sumsales;
quit;

a. two

b. three

c. four

d. five

 

Answer Key: a

 

I got this wrong because I picked b. I thought everything ends with a semicolon in SAS counts as a statement? Isn't that why they call it the QUIT statement?

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Quentin
Super User

I agree with you QUIT is a statement, and that code has three statements.

 

I would contact SAS and submit this as an erratum.  There is usually a link in the the beginning of the book that describes how to submit errata.

The Boston Area SAS Users Group is hosting free webinars!
Next webinar will be in January 2025. Until then, check out our archives: https://www.basug.org/videos. And be sure to subscribe to our our email list.

View solution in original post

1 REPLY 1
Quentin
Super User

I agree with you QUIT is a statement, and that code has three statements.

 

I would contact SAS and submit this as an erratum.  There is usually a link in the the beginning of the book that describes how to submit errata.

The Boston Area SAS Users Group is hosting free webinars!
Next webinar will be in January 2025. Until then, check out our archives: https://www.basug.org/videos. And be sure to subscribe to our our email list.

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
  • 1 reply
  • 857 views
  • 6 likes
  • 2 in conversation