25%macro mf_getplatform(
switch
28%
if &
switch.NONE=NONE %then %
do;
29 %
if %symexist(sasjsprocessmode) %then %
do;
30 %
if &sasjsprocessmode=Stored Program %then %
do;
35 %
if %symexist(sysprocessmode) %then %
do;
36 %
if "&sysprocessmode"=
"SAS Object Server"
37 or
"&sysprocessmode"=
"SAS Compute Server" %then %
do;
40 %
else %
if "&sysprocessmode"=
"SAS Stored Process Server"
41 or
"&sysprocessmode"=
"SAS Workspace Server"
51 %
else %
if %symexist(_metaport) or %symexist(_metauser) %then %
do;
60%
else %
if &
switch=SASSTUDIO %then %
do;
62 %
if %mf_mval(_CLIENTAPP)=%str(SAS Studio) %then %
do;
63 %let a=%mf_mval(_CLIENTVERSION);
65 %
if %eval(&b >2) %then %
do;
72%
else %
if &
switch=VIYARESTAPI %then %
do;
73 %mf_trimstr(%sysfunc(getoption(servicesbaseurl)),/)