21 %macro mf_getplatform(
switch
24 %
if &
switch.NONE=NONE %then %
do;
25 %
if %symexist(sysprocessmode) %then %
do;
26 %
if "&sysprocessmode"=
"SAS Object Server"
27 or
"&sysprocessmode"=
"SAS Compute Server" %then %
do;
30 %
else %
if "&sysprocessmode"=
"SAS Stored Process Server" %then %
do;
39 %
else %
if %symexist(_metaport) %then %
do;
48 %
else %
if &
switch=SASSTUDIO %then %
do;
50 %
if %mf_mval(_CLIENTAPP)=%str(SAS Studio) %then %
do;
51 %let a=%mf_mval(_CLIENTVERSION);
53 %
if %eval(&b >2) %then %
do;
60 %
else %
if &
switch=VIYARESTAPI %then %
do;
61 %mf_trimstr(%sysfunc(getoption(servicesbaseurl)),/)