home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
viscobv7.zip
/
vac22os2
/
ibmcobol
/
macros
/
iwzmtrc.lx
< prev
next >
Wrap
Text File
|
1997-12-17
|
2KB
|
63 lines
/* REXX */
trace off;
signal on novalue;
parse source opsys rest;
if opsys = 'OS/2' then
do;
call RxFuncAdd 'SysLoadFuncs','RexxUtil','SysLoadFuncs';
call SysLoadFuncs;
end;
parse arg theargs;
theargs = strip(theargs,'B','"');
parse var theargs qname message '\\\\' variables;
if substr(message,1,1) = '+' | substr(message,1,1) = '-' then
do;
message = substr(message,2);
nostop = substr(message,1,1);
end;
else
nostop = '';
'extract docnum into docnum';
'godoc name M:\Remote ECD Trace';
'bottom';
'extract recording into recording';
'set recording off';
'insert' message;
'msg' message;
if variables <> '' then
'insert ' variables;
'set recording' recording;
'sshow';
reply = '';
if nostop = '' | nostop = '+' then
do;
'extract global.iwzmtrc into iwzmtrc';
parse var iwzmtrc request arg;
select;
when request = 'stop' | nostop = '+' then
do;
say 'Enter REXX statement or press Enter to continue';
parse pull reply;
parse var reply arg1 rest;
if translate(arg1) = 'SAY' then
reply = "call iwzmtrc.cmd tracemod'\'whoami '-'iwz_trc_message'\\\\'"rest;
end;
when request = 'wait' then
do;
if arg = '' then
arg = 1;
xx = SysSleep(arg);
end;
otherwise
nop;
end;
end;
'godoc docnum' docnum;
if qname <> '*' then
do;
oldq = RxQueue('Set',qname);
push reply;
xx = RxQueue('Set',oldq);
end;
exit 0;