Accessing the scheduler work area

When the system interprets a job's JCL statements, it obtains information about the job's data sets. It stores this information in the scheduler work area (SWA). When the job runs, the system develops additional information about the job's data sets, which it also stores in the SWA. Some of this information is in the following SWA blocks:

Your program can use the SWAREQ macro and the IEFQMREQ macro to read from a block, write into a block, or obtain the location of a block. The only SWA blocks that you can access are the ones associated with your job.

A SWA block can be accessed using one of the following:

Use IEFQMREQ to access the SWA in programs that have a 24-bit addressing mode and SWA located above 16 megabytes. See z/OS JES2 Initialization and Tuning Guide or z/OS JES3 Initialization and Tuning Guide for information on placing SWA above or below 16 megabytes.