;
run;
Creating the Plants Data Set
data plants;
input type $ @;
do block=1 to 3;
input stemleng @;
output;
end;
datalines;
clarion 32.7 32.3 31.5
clinton 32.1 29.7 29.1
knox 35.7 35.9 33.1
o'neill 36.0 34.2 31.2
compost 31.8 28.0 29.2
wabash 38.2 37.8 31.9
webster 32.5 31.1 29.7
;
run;
Creating the Plant_Stats Data Set
data plant_stats;
do month = 1 to 12;
age = 2 + 0.3*rannor(345467);
age2 = 3 + 0.3*rannor(345467);
age3 = 4 + 0.4*rannor(345467);
output;
end;
run;
Creating the StatePop Data Set
data statepop;
input State $ CityPop_80 CityPop_90
NonCityPop_80 NonCityPop_90 Region;
format region 1.;
label citypop_80= '1980 metropolitan pop in millions'
noncitypop_80='1980 nonmetropolitan pop in millions'
citypop_90= '1990 metropolitan pop in millions'
noncitypop_90='1990 nonmetropolitan pop in million'
region='Geographic region';
datalines;
ME .405 .443 .721 .785 1
NH .535 .659 .386 .450 1
VT .133 .152 .378 .411 1
1078 Appendix 2 Example Programs

Get SAS 9.4 Output Delivery System, 3rd Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.