SAS OnlineTutorback||next

Try It! Create a summary report of Clinic.Diabetes.

Creating HTML output? Read this first.

  1. Copy and paste the following program into the Program Editor window:
     proc report data=clinic.diabetes nowd;
        column id sex weight fastgluc postgluc;
        where age>40;
        define weight / format=comma6.2
                        spacing=4;
        define sex / width=7 spacing=4 center
                     'Sex of/Patient';
        define fastgluc / 'Fasting/Glucose';
        define postgluc / 'Postprandial/Glucose'
                          width=12;
        define id / order descending;
     run;           
  1. Modify the program to define Sex as a group variable.

  2. Submit the program and view the report. Which variable is preventing PROC REPORT from collapsing observations?

  3. Recall the program, and revise it to remove the report column that is preventing grouping.

  4. Re-submit the program and view the summary report, which should contain two rows.

    Return here and select Next.

Solution
back||next


Copyright © 2002 SAS Institute Inc., Cary, NC, USA.
All rights reserved.

Terms of Use & Legal Information | Privacy Statement