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

Hi,

 

I have a question from Chp. 8 (By Group Processing), Question 4:

 

Which program below creates the following output? (output attached)

 

A) proc print data=cert.credit ;

     by type ;

     run ;

B) proc sort data=cert.credit ;

     by type ascending ;

     run ;

C) proc sort data=cert.credit ;

     by type ;

     run ;

D) proc sort data=cert.credit ;

     by type descending ;

     run ;

 

The correct answer is C.  I thought this should be A.  My understanding is that proc sort does not create any output; it sorts the data in the data set as specified and creates a new data set if specified in the out= option.  In order to create output, I thought you have to run proc print.

 

Thanks!

 

Chris

 

 

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
sbgidlow
SAS Employee

@CPoston,

 

The correct answer is C. PROC SORT does not create any output as it relates to the Results tab. However, it does sort your data and you would be able to see the sorted data in your library. I would say, we can reword the question to "Which program creates the sorted data set as shown?" Maybe that would clarify some confusion regarding the word output. 

 

To create output you would run a PROC PRINT, but I can see where the confusion is. Thanks for recommending this change - I will include this in the next release of the Content Updates page. 

View solution in original post

7 REPLIES 7
sbgidlow
SAS Employee

@CPoston,

 

The correct answer is C. PROC SORT does not create any output as it relates to the Results tab. However, it does sort your data and you would be able to see the sorted data in your library. I would say, we can reword the question to "Which program creates the sorted data set as shown?" Maybe that would clarify some confusion regarding the word output. 

 

To create output you would run a PROC PRINT, but I can see where the confusion is. Thanks for recommending this change - I will include this in the next release of the Content Updates page. 

Reeza
Super User

What version of the certification guide are you using?

The content update/errata page is here for the Certification Guide.

I would tend to agree - as posted A seems like the correct answer. 

 

https://support.sas.com/en/books/content-updates-base-prep-guide.html

 


@CPoston wrote:

Hi,

 

I have a question from Chp. 8 (By Group Processing), Question 4:

 

Which program below creates the following output? (output attached)

 

A) proc print data=cert.credit ;

     by type ;

     run ;

B) proc sort data=cert.credit ;

     by type ascending ;

     run ;

C) proc sort data=cert.credit ;

     by type ;

     run ;

D) proc sort data=cert.credit ;

     by type descending ;

     run ;

 

The correct answer is C.  I thought this should be A.  My understanding is that proc sort does not create any output; it sorts the data in the data set as specified and creates a new data set if specified in the out= option.  In order to create output, I thought you have to run proc print.

 

Thanks!

 

Chris

 

 

 

 

 

 


 

sbgidlow
SAS Employee

@Reezathat is NOT the correct Content Updates page, that is for a different Prep Guide that is no longer being used for Certification.

sbgidlow
SAS Employee

@Reeza, the correct content updates page for the current SAS Certified Specialist Prep Guide: Base Programming Using SAS 9.4 is 

https://support.sas.com/content/dam/SAS/support/en/books/errata-base-certified.pdf

 

 

Reeza
Super User

@sbgidlow wrote:

@Reeza, the correct content updates page for the current SAS Certified Specialist Prep Guide: Base Programming Using SAS 9.4 is 

https://support.sas.com/content/dam/SAS/support/en/books/errata-base-certified.pdf

 

 


Can you also include the versions on the Content Update pages so that it's clear which page goes with which version? I googled and found three and the one I linked to looked like the most recent  ¯\_(ツ)_/¯

 

 

CPoston
Obsidian | Level 7

@Reeza I am using this prep guide:  SAS Prep Guide

 

@sbgidlow thanks for the clarification

ijijijijijjiij
Fluorite | Level 6

This is just one of the many mistakes in this book...

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
  • 7 replies
  • 1943 views
  • 1 like
  • 4 in conversation