/* Lesson 06-2 */ /* File Name = les0602b.sas 11/13/03 */ options linesize=72 pagesize=20; data gakusei; infile 'all03b.prn' firstobs=2; input sex $ height weight chest jitaku $ kodukai carrier $ tsuuwa; proc format; value clheight low-<150=' -149' 150-<160='150-159' 160-<170='160-169' 170-<180='170-179' 180-high='180- ' other ='missing'; value clweight low-<40 =' -39' 40-<50 ='40-49' 50-<60 ='50-59' 60-<70 ='60-69' 70-high='70- ' other ='missing'; run; proc print data=gakusei(obs=10); run; proc freq data=gakusei; tables height; format height clheight.; tables weight; format weight clweight.; run; proc freq data=gakusei; tables height*weight; format height clheight.; format weight clweight.; run;