June 14, 2004, 03:32 PM
<Pietro De Santis>Report Caster conditional execution of a report
Hi,
I thought I could use a pre-process in Report Caster to determine if the report should run.
I can't seem to find any documentation on this - has anyone else tried this yet?
Thanks,
Pietro.
June 14, 2004, 03:40 PM
<Pietro De Santis>Answer to my own question - use the &&KILL_RPC parameter.
June 14, 2004, 06:41 PM
susannahPietro, you may find it useful to set this variable via a fex that you include as a PRE-EXECUTION procedure (in the caster setup).
I have a routine called CHKHOURC
that i include as a pre-exec procedure. It contains 2 little lines:
-SET &HOUR = EDIT(&TOD,'99');
-SET &&KILL_RPC = IF &HOUR GT 19 OR &HOUR LT 06 THEN 'Y' ELSE 'N';
and that keeps my hourly runs from running all nite long.