Posted: Thu Jun 29, 2017 11:36 pm Post subject: How to check if a job is running in shared JES2
Hello,
we are running 2 mainframes with a shared jes2 environment.
The application uses a centralized "submit" module for submitting jobs within cobol programs. The module is used in TSO-Batch, CICS and IMS enviroment. In fact it reads DB2 and DL/I Entry's, creates a job and copies the job to the internal reader.
If the calling application has an error it is possible that the application calls the submit-module in a loop.
Then all initiators went busy and no other job's can be run.
This end's up in a phone ringing loop, created by the operating
The job now is to change the submit-module. It should check if the requested job is alway's running, or waiting for execution. And if possible how many job's are submitted. All this regardless of the machine the submit-module is running on, or the user who has started the job.
My idea is to have a look in the mvs control blocks to get the information.
Currently I have started at the PSA, found the address of the CVT and then looking in the ASVT.
But no luck. If the module is running on the same machine as the job, the entry can be found. But if the job is running on the other machine, it can't be found by this method
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum