Attached is the p194.sas file. I believe that it generates data sets. I included only a snippet. /*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
WARNING: STUDENTS, DO NOT EXECUTE THIS PROGRAM! INSTEAD,
EXIT AND EXECUTE THE CRE8DATA.SAS PROGRAM TO SETUP
YOUR COURSE DATA ENVIRONMENT.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
WARNING: DO NOT ALTER CODE BELOW THIS LINE
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
options linesize=256;
data PG1.CLASS_BIRTHDATE;
attrib Name length=$8;
attrib Sex length=$1;
attrib Age length=8;
attrib Height length=8;
attrib Weight length=8;
attrib Birthdate length=8;
infile datalines dsd;
input
Name
Sex
Age
Height
Weight
Birthdate
;
datalines4;
Alfred,M,14,69,112.5,16370
Alice,F,13,56.5,84,16756
Barbara,F,13,65.3,98,16451
Carol,F,14,62.8,102.5,16256
Henry,M,14,63.5,102.5,16406
James,M,12,57.3,83,16967
Jane,F,12,59.8,84.5,16873
Janet,F,15,62.5,112.5,15797
Jeffrey,M,13,62.5,84,16552
John,M,12,59,99.5,17036
Joyce,F,11,51.3,50.5,17169
Judy,F,14,64.3,90,16410
Louise,F,12,56.3,77,17021
Mary,F,15,66.5,112,15790
Philip,M,16,72,150,15665
Robert,M,12,64.8,128,16958
Ronald,M,15,67,133,15992
Thomas,M,11,57.5,85,17243
William,M,15,66.5,112,16067
;;;;
run;
data PG1.CLASS_TEACHERS;
attrib Name length=$8;
attrib Grade length=8;
attrib Teacher length=$12;
infile datalines dsd;
input
Name
Grade
Teacher
;
datalines4;
Alfred,8,Thomas
Alice,7,Evans
Barbara,6,Smith
Carol,8,Thomas
Henry,8,Thomas
James,6,Smith
Jane,5,Garcia
Janet,9,Jones
Jeffrey,7,Evans
John,6,Smith
Joyce,5,Garcia
Judy,8,Thomas
Louise,6,Smith
Mary,9,Jones
Philip,10,Williams
Robert,7,Evans
Ronald,10,Williams
Thomas,6,Smith
William,9,Jones
;;;;
run;
data PG1.CLASS_TEST2;
attrib Name length=$7;
attrib Subject length=$7;
attrib TestScore length=8;
infile datalines dsd;
input
Name
Subject
TestScore
;
datalines4;
Judy,Math,97
Judy,Reading,91
Barbara,Math,96
Barbara,Reading,86
Louise,Math,92
Louise,Reading,99
James,Math,90
James,Reading,85
Joyce,Math,88
Joyce,Reading,75
William,Math,87
William,Reading,87
Henry,Math,85
Henry,Reading,86
Jane,Math,84
Jane,Reading,76
Alfred,Math,82
Alfred,Reading,79
Mary,Math,81
Mary,Reading,84
Janet,Math,75
Janet,Reading,71
Philip,Math,73
Philip,Reading,80
Alice,Math,71
Alice,Reading,67
Robert,Math,71
Robert,Reading,72
Thomas,Math,70
Thomas,Reading,68
John,Math,68
John,Reading,73
Ronald,Math,66
Ronald,Reading,62
Carol,Math,61
Carol,Reading,57
Jeffrey,Math,55
Jeffrey,Reading,63
;;;;
run;
data PG1.CLASS_TEST3;
attrib Name length=$7;
attrib Subject length=$7;
attrib TestScore length=8;
infile datalines dsd;
input
Name
Subject
TestScore
;
datalines4;
Judy,Math,97
Judy,Reading,91
Barbara,Math,96
Barbara,Reading,86
Barbara,Math,96
Louise,Math,92
Louise,Reading,99
James,Math,90
James,Reading,85
Joyce,Math,88
Joyce,Reading,75
William,Math,87
William,Reading,87
Henry,Math,85
Henry,Math,90
Henry,Reading,86
Jane,Math,84
Jane,Reading,76
Alfred,Math,82
Alfred,Reading,79
Mary,Math,81
Mary,Reading,84
Janet,Math,75
Janet,Reading,71
Philip,Math,73
Philip,Reading,80
Alice,Math,71
Alice,Reading,67
Robert,Math,71
Robert,Reading,72
Thomas,Math,70
Thomas,Reading,68
John,Math,68
John,Reading,73
Ronald,Math,66
Ronald,Reading,62
Carol,Math,61
Carol,Reading,57
Jeffrey,Math,55
Jeffrey,Reading,63
;;;;
run;
data PG1.CLASS_UPDATE;
attrib Name length=$8;
attrib Sex length=$1;
attrib Age length=8;
attrib Height length=8;
attrib Weight length=8;
infile datalines dsd;
input
Name
Sex
Age
Height
Weight
;
datalines4;
Alfred,M,14,69,112.5
Alice,F,13,56.5,84
Barbara,F,13,65.3,98
David,M,11,55.3,73
Henry,M,14,63.5,102.5
James,M,12,57.3,83
Jane,F,12,59.8,84.5
Janet,F,15,62.5,112.5
Jeffrey,M,13,62.5,84
John,M,12,59,99.5
Joyce,F,11,51.3,50.5
Judy,F,14,64.3,90
Louise,F,12,56.3,77
Mary,F,15,66.5,112
Philip,M,16,72,150
Robert,M,12,64.8,128
Ronald,M,15,67,133
Thomas,M,11,57.5,85
William,M,15,66.5,112
;;;;
run;
data PG1.EU_OCC;
attrib Geo length=$2 label='Country Code';
attrib Country length=$40 label='Reporting Country';
attrib YearMon length=$8 label='Year Month';
attrib Hotel length=8 label='Nights Spent at Hotels';
attrib ShortStay length=8 label='Nights Spent at Short Stay Accommodations';
attrib Camp length=8 label='Nights Spent at Camp Grounds or RV Parks';
infile datalines dsd;
input
Geo
Country
YearMon
Hotel
ShortStay
Camp
;
datalines4;
AT,Austria,2017M09,7768564,1453530,524121
AT,Austria,2017M08,11353432,3140217,1997801
AT,Austria,2017M07,10124106,2836425,1752605
AT,Austria,2017M06,7391827,1568683,914560
... View more