SAS OnlineTutorback||next
Try It! Format variable values using Clinic.Admit.

Creating HTML output? Read this first.

  1. Copy the program below and paste it into the Program Editor window (or issue the command copy sashelp.oltutor..source).
    title1 'March Admissions';
    footnote1 'For Patients Over 30';
    proc print data=clinic.admit label;
       var age height weight fee;
       where age>30;
       sum fee;
       label fee='Admission Fee';
    run;
    

  2. Insert a statement to format values of Fee with a width of ten print positions and displaying dollar signs, commas, and two decimal places.

  3. Submit the program and view the output.

  4. Submit a null TITLE statement and a null FOOTNOTE statement to cancel all titles and footnotes.

    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