Hi guys,
I did myself never implement a JOBG but I observed the usage of it at a UC4 REORG Workflow:
Just as quick explanation: UC4 Reorg consists of the DB Utilities DB_ARCHIVE, DB REORG thet should run for every client
in the system and afterward once shouldrun DB.UNLOAD.
So they took a workflow and put 3 objects into it, one additional generic JOBS is needed.
1. Startscript - processes an SQLI VARA that determines all clients to run REORG on.
for every client the same JOBS gets started with Parameter CLIENT and ARCHIVE and REORG
last the JOBS gets activated with parameter UNLOAD
2.JOBG object that starts all previous activated jobs one by one
3. ZIP archive files (generated by DB archive utility)
quite easy and simple with only 5 Objects the whole reorg process is done.
Errorhandling must be done on JOB level!
I use prep_process_report for this and parse for *Application return code = 0*
(Attention, this does not catch all errors from the utility!)
hope that helps you a bit
cheers, Wolfgang