How do you get Report Caster to run a task only if the one scheduled before it completed successfully?
Thank you.This message has been edited. Last edited by: Kerry,
WebFOCUS 7.6.11, Linux, HTML, PDF, AHTML, EXCEL
Say there are 3 jobs that are to run in sequence and JOB2 runs only if JOB1 runs successfully and JOB3 runs only if JOB2 runs successfully. Now assumming you have worked out what "runs successfully" means, here is what I would do.
Set up JOB1, JOB2 and JOB3 in report caster and schedule JOB1 to run. When it "runs successfully", use DSTRUN to tell Report Caster to run JOB2. Likewise, when JOB2 finishes, use DSTRUN to tell Report Caster to run JOB3.
In FOCUS since 1985. Prod WF 8.0.08 (z90/Suse Linux) DB (Oracle 11g), Self Serv, Report Caster, WebServer Intel/Linux.
Suggestion from our ReportCaster technicals: &&KILL_RPC in a pre-execution fex is the way to go. Each task has its own set of pre/post-execution fexes. So for each task, have it run a pre-execution fex with &&KILL_RPC; depending on the condition/test that the pre-exec fex has to run, it could even be the same pre-exec fex for all of the tasks.
Focal Point Moderator
Information Builders, Inc.
|Powered by Social Strata|