SAS OnlineTutor HomeFAQ PageSuggested Learning PathsContents+Searchback||next

Creating Bar and Pie Charts
Using RUN-Group Processing


At this point, you've learned a number of options for enhancing charts. When you are modifying your SAS/GRAPH output, you can also take advantage of RUN-group processing.  This means that when running in interactive mode, you can submit additional statements to enhance your output without resubmitting the PROC step that created it.

Let's look at an example to see how this works. Suppose you submit the following program to create a bar chart.
     proc gchart data=clinic.therapy1999;
        vbar month / sumvar=swim;
     run;

Display default overlaid plots.

After you create the chart, you decide to add a label. Instead of resubmitting the entire PROC GCHART step, you can submit only a LABEL statement, along with a RUN statement, to cause the LABEL statement to execute.

When you submit the following statements, the last action statement submitted (in this case, the VBAR statement) re-executes and re-creates the output with the label added.
     label month='Month of 1999';
     run;

Display overlaid plots with label.

To end the procedure, you must submit another PROC step, a DATA step, or a QUIT statement (shown below).
     quit;

Note: Not all procedures support RUN-group processing, and implementation varies. For more information, see SAS/GRAPH Software: Reference.


back||next


Copyright © 2002 SAS Institute Inc., Cary, NC, USA. All rights reserved.

Terms of Use & Legal Information | Privacy Statement