Hi. Can someone help me understand why the following code hangs in SAS? Thanks!
%macro attempt_signon;
signon %sysfunc(dequote(&t.)) sascmd="!sascmdv" swait=yes cmacvar=p;
%mend;
proc fcmp
outlib=work.func.connect
;
function attempt_signon(t $);
rc = run_macro('attempt_signon', t, p);
if rc = 0 then return(p);
else return(.);
endsub;
run;
option cmplib=(work.func);
data _null_;
a = "t";
p = attempt_signon(a);
put _all_;
run;