SAS OnlineTutor HomeFAQ PageSuggested Learning PathsContents+Searchback||next

Enhancing and Exporting Charts and Plots
Formatting Data Values


As with LABEL statements, FORMAT statements have the same effect in SAS/GRAPH output as in other procedure output. The FORMAT statement highlighted below displays values of BalanceDue with a dollar sign ($), a comma (,), and no decimal places to a width of five positions.
     proc gchart data=clinic.insure;
        vbar company / type=sum sumvar=balancedue
             patternid=midpoint;
        where company in ('A&R','ACME','RURITAN');
        label balancedue='Balance Due'
              company='Insurance Co. Billed';
        format balancedue dollar5.; 
     run;

Display plot with format statement.


  back||next

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

Terms of Use & Legal Information | Privacy Statement