SAS OnlineTutorback||next

Try It! Assign attributes to columns 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; define sex / width=3; run;
  2. Specify four spaces between the columns of Sex and Weight and the preceding column.

  3. For Sex, specify a width of 7, the column heading Sex of Patient, and center justification.

  4. For FastGluc, specify the column heading Fasting Glucose.

  5. For PostGluc, specify a width of 12 and the column heading Postprandial Glucose.

  6. In the column headings for Sex, FastGluc, and PostGluc, use a split character so that each column heading appears on two lines in either SAS listing or HTML output.

  7. 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