SAS OnlineTutor HomeFAQ PageSuggested Learning PathsContents+Searchback||next

Enhancing and Exporting Charts and Plots
Formatting Data Values


Question: Write a statement to write out values of the variable Total using the format COMMA10.2 and the variable BalanceDue using the format DOLLAR10.2.
      proc gchart data=clinic.insure;
         vbar company / type=sum sumvar=balancedue 
              patternid=midpoint;
         hbar company / type=sum sumvar=total 
              patternid=midpoint;
         label balancedue='BALANCE DUE' 
               total='TOTAL BALANCE';
         
      run;

           

  back||next

 

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

Terms of Use & Legal Information | Privacy Statement