by Robert Sample » Mon Mar 18, 2013 2:48 pm
Rethink your design. You have posted two topics that basically ask the same question, and you are being told -- REPEATEDLY -- that what you want to do is not a good idea or even possible.
If you submit a batch job from a COBOL program (which is easily done using the internal reader -- although you will have to research this in the IBM documentation and check your site standards), you cannot get any information back from that submitted job to your COBOL program. The submitted job runs completely and totally independently of your COBOL program. It is not possible, under any circumstances, for you to submit a batch job using the internal reader and then have your COBOL code do any kind of conditional logic based on the batch job and its results. Such things are the function of a job scheduler such as OPC or CA-7 or Zeke, and you are STRONGLY encouraged not to attempt to replicate them in your coding. Each of them took hundreds of thousands or millions of man-hours to develop and you, on your own, do not have the time to replicate them.
- These users thanked the author Robert Sample for the post:
- Kevin Q M Cai (Tue May 07, 2013 3:48 pm)