Q: Our operators have some jobs that run for a long time. When the jobs finish processing, completion message CPF1241 is sent to the operators' message queue. The problem is that often by time the job ends, the operators are gone. I would like to have the completion message sent to the QSYSOPR message queue. Specifying MSGQ(QSYSOPR) on the Submit Job (SBMJOB) command works for some of the jobs. But others consist of a command from a vendor product that calls a CL program under the covers. Can you offer any suggestions for this situation?
A: You'd have to check the SBMJOB command in the CL programs. You can't change a job to send the completion message elsewhere, so the desired destination must appear in the initial SBMJOB command. If the vendor didn't give you source, try the Retrieve CL Source (RTVCLSRC) command on the program. This only works if the vendor compiled the CL with the Allow Retrieve Source attribute (ALWRTVSRC) set to *YES.