Saturday, August 23, 2025

SAS Mainframe - Create PIE Chart using SAS

With the proc chart procedure, the PIE statement will create the PIECHART. The size of a pie represents the percentage that of category of data. Since the output is in spool and not routed to any printer, it is not exact circular. 
By Default it looks bit elliptical which can be made round by specifying proper values using LPI statement. The pie's size is determined only by the SAS system options LINESIZE and PAGESIZE=. In the snippet above, LS and PS are the parameters which stands for Linesize and Pagesize.  
Code snippet:
 


O/P: