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;
58 %
if %symexist(_replay) %then %
do;
59 _replay=symget(
'_replay');
60 _replay=subpad(_replay,index(_replay,
'_sessionid=')+11,length(_replay));
61 index=index(_replay,
'&')-1;
62 if index=-1 then index=length(_replay);
63 _replay=substr(_replay,1,index);
73 _SESSIONID=symget(
'_SESSIONID');
79 proc append base=&libds data=&syslast nowarn;run;
81 options &etls_syntaxcheck;