The Status function searches the AJF for the requested jobs. More than one job may conform to the selection criteria specified in the CTMBAPI DSECT. In that case, a Job Status Element (JSE) entry is returned to the caller for each job.
The Selection Criteria can significantly affect overall performance.
The more specific the request, the fewer the jobs that must be read and returned to the caller. For example, if you request status information for all jobs starting with the letter A, the function must read a large part of the AJF, degrading its performance.
Pay special attention to whether your search criteria are indexed. If you ask for status information about jobs with a selection criteria that is not indexed, for example, from a specific ODATE, without any indexed selection criteria, the whole AJF must probably be read.