/* Lesson 07-2 */ /* File Name = les0702.sas 05/29/03 */ options linesize=72 pagesize=20; data gakusei; infile 'all03a.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 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;