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.

BASUG is hosting free webinars Next up: Mark Keintz presenting History Carried Forward, Future Carried Back: Mixing Time Series of Differing Frequencies on May 8. Register now at the Boston Area SAS Users Group event page: https://www.basug.org/events.

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.

BASUG is hosting free webinars Next up: Mark Keintz presenting History Carried Forward, Future Carried Back: Mixing Time Series of Differing Frequencies on May 8. Register now at the Boston Area SAS Users Group event page: https://www.basug.org/events.

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
3 ways to show off your SAS skills

 

Why Get SAS Certified.jpg

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 503 views
  • 6 likes
  • 2 in conversation