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

Scenario 2 from SAS certified specialist textbook:

 

This scenario uses Cert. Stress data set. Write a SAS program to do the following:
-Create a new temporary SAS data set that uses Cert.Stress and store the results in Work.Stress1.
-Remove observations with RestHR values that are greater than or equal to 70.
-Create a new variable called TotalTime. The value of TotalTime is the value of TimeMin multiplied by 60, plus the value of TimeSec.

Solution code:

data work.stress1; /*#1*/
set cert.stress; /*#2*/
where RestHR <=70; /*#3*/
TotalTime=(timemin*60)+timesec; /*#4*/
if TotalTime<600 then delete; /*#5*/
run;
proc print data=work.stress1; /*#6*
run;

 

Solution Output:

sprdsani_0-1588536965568.png

In the solution, RestHR has values equal to 70, whereas in the question it mentions to remove RestHR values equal to greater to 70. 

 

Am I mistaken? Any feedback/suggestion is appreciated.

 

1 ACCEPTED SOLUTION

Accepted Solutions
ed_sas_member
Meteorite | Level 14

Hi @sprdsani 

 

You're right, there is a mistake in the certification guide.

You can check for updates here: https://support.sas.com/content/dam/SAS/support/en/books/errata-base-certified.pdf

Extract:

Capture d’écran 2020-05-04 à 08.37.18.png

Capture d’écran 2020-05-04 à 08.38.53.pngI also experienced the following inconsistencies with the book:

-> The dataset 'Aprbills' can be accessed with the libname 'Cert' and not 'Clinic'

-> The dataset 'Heart' for scenario 6 can be accessed with the libname 'Sashelp' (no Excel file supplied)

 

Best,

View solution in original post

6 REPLIES 6
Reeza
Super User

Did you check if there's an errata/error page for the book and if that question is listed in there?

 


@sprdsani wrote:

Scenario 2 from SAS certified specialist textbook:

 

This scenario uses Cert. Stress data set. Write a SAS program to do the following:
-Create a new temporary SAS data set that uses Cert.Stress and store the results in Work.Stress1.
-Remove observations with RestHR values that are greater than or equal to 70.
-Create a new variable called TotalTime. The value of TotalTime is the value of TimeMin multiplied by 60, plus the value of TimeSec.

Solution code:

data work.stress1; /*#1*/
set cert.stress; /*#2*/
where RestHR <=70; /*#3*/
TotalTime=(timemin*60)+timesec; /*#4*/
if TotalTime<600 then delete; /*#5*/
run;
proc print data=work.stress1; /*#6*
run;

 

Solution Output:

sprdsani_0-1588536965568.png

In the solution, RestHR has values equal to 70, whereas in the question it mentions to remove RestHR values equal to greater to 70. 

 

Am I mistaken? Any feedback/suggestion is appreciated.

 


 

sprdsani
Calcite | Level 5

I couldn't see any error page in the book.

Reeza
Super User

Error pages are not in the book...they're created afterwards to include errors in the book, sort of a leftover from paper publishing from when you couldn't update materials as easily. It can still break references such as page numbers or PDF references so errors are still kept separately. Tutorials can also refer to Page 8 for example and if you update contents the pages can shift. 

 

Usually you find the book page online and look for updates or errata pages. I don't know where it is off the top of my head, otherwise I'd send you the link. 

 


@sprdsani wrote:

I couldn't see any error page in the book.


 

 

ed_sas_member
Meteorite | Level 14

Hi @sprdsani 

 

You're right, there is a mistake in the certification guide.

You can check for updates here: https://support.sas.com/content/dam/SAS/support/en/books/errata-base-certified.pdf

Extract:

Capture d’écran 2020-05-04 à 08.37.18.png

Capture d’écran 2020-05-04 à 08.38.53.pngI also experienced the following inconsistencies with the book:

-> The dataset 'Aprbills' can be accessed with the libname 'Cert' and not 'Clinic'

-> The dataset 'Heart' for scenario 6 can be accessed with the libname 'Sashelp' (no Excel file supplied)

 

Best,

sprdsani
Calcite | Level 5
Thank you for clarifying.
ed_sas_member
Meteorite | Level 14
You're welcome @sprdsani !

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

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
  • 6 replies
  • 1595 views
  • 3 likes
  • 3 in conversation