When you submit a batch job to Enterprise Server, job information is written to the spool files, which are continually updated throughout the life of the job. This creates a chronological record of the stages of execution from the job submission stage through to job completion.
The interface for the ESMAC spool queues enables you to view the status of current jobs in Enterprise Server; however, it does not provide full access to the information in the spool files. The MVSCASPB API provides access to all fields previously held in casspool.dat. When you call it from a COBOL program, you can retrieve all or some of this data by referencing one or more keyed indexes.