Hello, we have an application that submits jobs using the VSAM-Interface (Macros GENCB, MODCB, SHOWCB etc.) to the internal reader and then obtains the submitted job's id using the ENDREQ-Makro. This all works fine and we always get a job id when the input stream contains a valid job and no garbage.
Now we added some code to optionally wait for the submitted job to complete. For that, we use the subsystem interface (IEFSSREQ) with function code 80 (extended status call). We use the job id returned from the ENDREQ as a filter to return only information for this job. Depending on the load on the JES subsystem, the first calls trying to obtain the job status using IEFSSREQ always fail to provide information on this job id. It takes some time (sometimes several seconds) until the job appears in the output of IEFSSREQ. From my understanding, as the job has already been assigned a job id, it should appear on one of the JES queues, for example somewhere in the JES input processing phase. As the program has no influence on the type of job submitted, there is no way to decide whether the job has not yet appeared on the JES queues or whether it has already disappeared after PURGE processing. So my question is: Is there a foolproof way to obtain information about a job that has been assigned an id during submit and has not yet appeared on the JES queues ? Our system is the z/OS 1.4 Summer with JES2 from the preconfigured ADCD. Any comments are welcome. Regards Wolfgang Rupprath FSP GmbH Cologne/Germany ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html