SAS OnlineTutorback||next

Try It! Order rows in a 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;
    run;
    
  2. Define ID as an order variable.

  3. Submit the program and view the report.

  4. Recall the program.

  5. Add an option to order rows in descending order of values of ID.

  6. Re-submit the program and view the report.

    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