Type : SASHELP
Uso de la tabla estándar SASHELP.SHOES. Las tablas de trabajo (sum) se derivan de esta.
| 1 | %let panelcolumns = 4; |
| 2 | %let panelborder = 4; |
| 3 | ods tagsets.htmlpanel file="C:\workshop\hw06\bypanel2.html" gpath='c:\workshop\hw06\' options(doc='help'); |
| 4 | goptions device=java xpixels=320 ypixels=240; |
| 1 | title1 'Product Reports' ; |
| 2 | footnote1 ; |
| 3 | PROC SUMMARY DATA=sashelp.shoes nway ; |
| 4 | class region product ; |
| 5 | var stores sales inventory returns ; |
| 6 | OUTPUT out=sum sum= mean= /autolabel autoname ; |
| 7 | RUN ; |
| 1 | PROC GCHART DATA=sum ; |
| 2 | BY region ; |
| 3 | vbar product / sumvar=sales_sum pattid=midpoint discrete ; |
| 4 | RUN; |
| 5 | QUIT; |
| 1 | PROC SUMMARY DATA=sashelp.shoes nway ; |
| 2 | class region subsidiary ; |
| 3 | var stores sales inventory returns ; |
| 4 | OUTPUT out=sum sum= mean= /autolabel autoname ; |
| 5 | RUN ; |
| 1 | %let panelcolumns = 5; |
| 2 | %let panelborder = 1; |
| 3 | ods tagsets.htmlpanel ; |
| 4 | |
| 5 | title 'Summary data' ; |
| 6 | PROC PRINT DATA=sum ; |
| 7 | RUN ; |
| 1 | title 'Subsidiary Reports' ; |
| 2 | %let panelcolumns = 5; |
| 3 | %let panelborder = 1; |
| 4 | ods tagsets.htmlpanel ; |
| 5 | goptions dev=java xpixels=160 ypixels=120; |
| 6 | PROC GCHART DATA=sum ; |
| 7 | BY region ; |
| 8 | pie subsidiary / sumvar=sales_sum discrete ; |
| 9 | RUN; |
| 10 | QUIT; |
| 11 | ods _all_ close; |