37%macro mp_stprequests(status_cd=
38 ,libds=somelib.stp_requests
42 %local etls_syntaxcheck;
43 %let etls_syntaxcheck=%sysfunc(getoption(syntaxcheck));
44 options nosyntaxcheck;
48 request_dttm=datetime();
49 status_cd=
"&status_cd";
50 _METAPERSON=
"&_metaperson";
52 SYSUSERID=
"&sysuserid";
54 %
if not %symexist(_SESSIONID) %then %
do;
56 _replay=symget(
'_replay');
57 _replay=subpad(_replay,index(_replay,
'_sessionid=')+11,length(_replay));
58 index=index(_replay,
'&')-1;
59 if index=-1 then index=length(_replay);
60 _replay=substr(_replay,1,index);
66 _SESSIONID=symget(
'_SESSIONID');
72 proc append base=&libds data=&syslast nowarn;run;
74 options &etls_syntaxcheck;