28%macro mx_getcode(loc,outref=0
31%local platform name shortloc;
32%let platform=%mf_getplatform();
34%
if &platform=SASJS %then %
do;
35 %ms_getfile(&loc..sas, outref=&outref)
37%
else %
if &platform=SAS9 or &platform=SASMETA %then %
do;
38 %mm_getstpcode(tree=&loc,outref=&outref)
40%
else %
if &platform=SASVIYA %then %
do;
44 name=scan(loc,-1,
'/');
45 shortloc=substr(loc,1,length(loc)-length(name)-1);
46 call symputx(
'name',name,
'l');
47 call symputx(
'shortloc',shortloc,
'l');
55%
else %put &sysmacroname: &platform is unsupported!!!;