Subset the data for 1995 and generate the vertical bar chart for 1995. AUTOREF draws a reference line on the backplane for every major tick mark value. SUBGROUP= creates a separate bar segment for each department. SPACE= controls the space between the bars. HTML= names the variable that contains the targets for the bars. HTML_LEGEND= names the variable that contains the targets for the legend values. The GIF files use the catalog entry name specified by NAME=.
where year=1995;
vbar3d country / sumvar=megtons
                 subgroup=type
                 autoref
                 html=countrydrill
                 html_legend=typedrill
                 legend=legend1
                 cframe=grayaa
                 space=3
                 coutline=black
                 maxis=axis3
                 raxis=axis2
                 name='year95'
                 des='Production Breakdown for 1995';
run;