SAS OnlineTutorback||next

Try It! Create three charts using the Clinic.Admit data set.

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).
    proc gchart data=clinic.admit;
       hbar sex;
       vbar age;
       pie actlevel;
    run;
    
  2. Submit the program.

  3. View the output, noticing the variables that are charted and the statistics that are calculated. Notice that the program requested three different charts from the same data without resubmitting the procedure.

    NOTE: The status line in the Program Editor window displays the message PROC GCHART running. Unlike most other procedures, the GCHART procedure continues to run until you submit another PROC step, a DATA step, or a QUIT statement. This feature is called RUN-group processing. RUN-group processing is discussed in the lesson Enhancing and Exporting Charts and Plots. You may submit a QUIT statement now, or let PROC GCHART continue running.  

    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