/* Lesson 06-2 */ /* File Name = les0602.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'; run; proc print data=gakusei(obs=10); run; proc chart data=gakusei; hvar height / midpoints=145 to 185 by 10; run; proc freq data=gakusei; tables height; format height clheight.; run; proc freq data=gakusei; tables sex*height; format height clheight.; run; proc sort data=gakusei; by sex; run; proc freq data=gakusei; tables height; format height clheight.; by sex; run;