SAS OnlineTutorback||next

Try It! Use RUN-group processing to create charts using Clinic.Insure.

Creating HTML output? Read this first.

  1. Copy the following program and paste it into the Program Editor window (or issue the command copy sashelp.oltutor..source).
    proc gchart data=clinic.insure;
       vbar company / sumvar=total
            patternid=midpoint;
       where total>570;
    run;
    

  2. Submit the program and view the output.

  3. Without recalling the program, submit these statements and view the additional charts:

    • an HBAR statement  requesting only the statistic PERCENT for the chart variable Company, with PERCENT labeled Percent of Total

    • a VBAR statement requesting the statistic CFREQ outside the bars for the chart variable Company

    • a RUN statement.

  4. View the output. Then submit a statement to end the GCHART procedure.

    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