Generate the second graphics output from the template using the WORK.CARS data set. The BY statement generates multiple graphs for each value of the BY variable. The DYNAMIC statement defines dynamic variables in the template.


proc sgrender data=cars template=distribution;
  by origin;
  dynamic var="weight" varlabel="Weight in LBS"  
          title="Distribution of Vehicle Weight";
run;