

libname example sasiola host="grid001.example.com" port=10010 tag='hps';
data example.prdsale; set sashelp.prdsale; run;
proc imstat data=example.prdsale;
mdsummary actual / 1
/* 1 */ groupby=(region prodtype)
formats=("$", "$")
filter="(NOT (REGION='WEST'))",
/* 2 */ groupby=(region prodtype division)
formats=("$", "$", "$")
filter="(NOT (REGION='WEST')) AND (NOT (PRODUCT='SOFA'))"
/* 3 */ groupby=(region prodtype division year)
formats=("$", "$", "$", "f4.") 2
filter="(NOT (REGION='WEST'))";
run;

