cancel
Showing results for 
Search instead for 
Did you mean: 

SAS Certification Prep Guide, 4th Edition chapter 11

ssafmed
Obsidian | Level 7

SAS Certification Prep Guide, 4th Edition chapter 11

Hello!

 

I m working in SAS Certification Prep Guide, 4th Edition chapter 11 and I cannot find master.temps in the data of the book : in the example the same as 

master.class in anathor example
data work.report; 
   set master.temps; 
   mon=5*(mon-32)/9; 
   tue=5*(tue-32)/9; 
   wed=5*(wed-32)/9; 
   thr=5*(thr-32)/9; 
   fri=5*(fri-32)/9; 
   sat=5*(sat-32)/9; 
   sun=5*(sun-32)/9; 
run;

 Thanks for hepling!

8 REPLIES 8
sabisw
SAS Employee

Re: SAS Certification Prep Guide, 4th Edition chapter 11

@ssafmed What environment are you using?

Highlighted
ssafmed
Obsidian | Level 7

Re: SAS Certification Prep Guide, 4th Edition chapter 11

Sas 9.4 windows 10
sabisw
SAS Employee

Re: SAS Certification Prep Guide, 4th Edition chapter 11

@ssafmed thanks for reporting this. You can use Sasuser.class and Sasuser.temps. 

 

ssafmed
Obsidian | Level 7

Re: SAS Certification Prep Guide, 4th Edition chapter 11

Message contains an image

As you can see in screen in the library sasuser there is no class neither temps

 

thanks @sabisw

  SASuser.PNG

sabisw
SAS Employee

Re: SAS Certification Prep Guide, 4th Edition chapter 11

Message contains a hyperlink

@ssafmed, please verify that you are using this sample data program: https://support.sas.com/content/dam/SAS/support/en/books/data/sampledata.txt 

ssafmed
Obsidian | Level 7

Re: SAS Certification Prep Guide, 4th Edition chapter 11

I execute the file and I get the same! in the chapter Array they use 

master.synyms  hrd.fitclass and no one of them is in any library
sabisw
SAS Employee

Re: SAS Certification Prep Guide, 4th Edition chapter 11

Run the following code, and it will create fitclass, class, and temps in the Work folder. I am currently looking for the synyms data set. 

 

data work.fitclass;
   input Name $1-8 Weight1 Weight2 Weight3 Weight4 Weight5 Weight6;
datalines;
Alicia  69.6 68.9 68.8 67.4 66   66.2
Betsy   52.6 52.6 51.7 50.4 49.8 49.1
Brenda  68.6 67.6 67   66.4 65.8 65.2
Carl    67.6 66.6 66   65.4 64.8 64.2
Carmela 63.6 62.5 61.9 61.4 60.8 58.2
David   70.6 69.8 69.2 68.4 67.8 67
;
run;
data work.class;
   input Name $1-7 Score1 Score2 Score3 Homework;
datalines;
LINDA   53 60 66  42
DEREK   72 64 56  32
KATHY   98 82 100 48
MICHAEL 80 55 95  50
;
run;
data work.temps;
   input mon tue wed thr fri sat sun;
datalines;
88.4 98.8 94.2 92.5 88.3 87.4 86.1
98.2 96.2 91.5 85    89.5 84.3 88.2
87.5 88.8 88.7 84.6 81.5 81.4 82.3
;
run;
ssafmed
Obsidian | Level 7

Re: SAS Certification Prep Guide, 4th Edition chapter 11

thanks for helping @sabisw