45     ,outds=work.mm_getstps
    52 %
if &mDebug=1 %then %let mD=;
    53 %
else %let mD=%str(*);
    54 %&mD.put Executing mm_getstps.sas;
    58   length stpuri stpname usageversion treeuri stpdesc $256;
    59   call missing (of _all_);
    62 %
if %length(&tree)>0 %then %
do;
    64   %mm_gettree(tree=&tree,inds=&outds, outds=&outds, mDebug=&mDebug)
    65     %
if %mf_nobs(&outds)=0 %then %
do;
    66     %put NOTE:  Tree &tree did not exist!!;
    74   set &outds(rename=(treeuri=treeuri_compare));
    75   length treeuri query stpuri $256;
    77 %
if %length(&name)>0 %then %
do;
    78   query=
"omsobj:ClassifierMap?@PublicType='StoredProcess' and @Name='&name'";
    82   query=
"omsobj:ClassifierMap?@PublicType='StoredProcess'";
    84 %
if &mDebug=1 %then %
do;
    85   putlog 
'start' (_all_)(=);
    87   do while(0<metadata_getnobj(query,i,stpuri));
    89     rc1=metadata_getattr(stpuri,
"Name", stpname);
    90     rc2=metadata_getnasn(stpuri,
"Trees",1,treeuri);
    91   %
if %length(&tree)>0 %then %
do;
    92     if treeuri ne treeuri_compare then 
goto exitloop;
    94   %
if %length(&showDesc)>0 %then %
do;
    95     rc3=metadata_getattr(stpuri,
"Desc", stpdesc);
    98   %
if %length(&showUsageVersion)>0 %then %
do;
    99     rc4=metadata_getattr(stpuri,
"UsageVersion",UsageVersion);
   106   keep stpuri stpname treeuri;