23%macro mm_getstpinfo(pgm
24 ,outds=work.mm_getstpinfo
29%
if &mDebug=1 %then %let mD=;
31%&mD.put Executing &sysmacroname..sas;
35 length type stp_uri tsuri servercontext value $200
36 StoredProcessConfiguration $1000 sourcecode_first32k $32767;
37 keep path stp_uri sourcecode_first32k StoredProcessConfiguration
39 call missing (of _all_);
40 path=
"&pgm(StoredProcess)";
42 if metadata_pathobj(
"",path,
"StoredProcess",type,stp_uri)>0 then
do;
45 do while (metadata_getnasn(stp_uri,
"Notes",cnt,tsuri)>0);
46 rc1=metadata_getattr(tsuri,
"Name",value);
47 &mD.put tsuri= value=;
48 if value=
"SourceCode" then
do;
49 rc2=metadata_getattr(tsuri,
"StoredText",sourcecode_first32k);
51 else if value=
"Stored Process" then
do;
52 rc3=metadata_getattr(tsuri,
"StoredText",StoredProcessConfiguration);
57 rc4=metadata_getnasn(stp_uri,
"ComputeLocations",1,tsuri);
58 rc5=metadata_getattr(tsuri,
"Name",servercontext);
61 put
'ERR' +(-1)
"OR: could not find " path;