DB2 graphic  QMF Version 8

Storing resource control information for the duration of a QMF session

You can use the information passed to the governor on the first call of a session for subsequent calls to the governor routine. You can use the 2,048-byte scratchpad areas provided in the DXEGOVA and DXEXCBA control blocks to obtain the necessary storage to hold the resource control information. These fields can contain any information you need to store. The information persists from one call to the governor to the next (if a CONNECT call doesn't change it).

The IBM-supplied governor uses the code shown in Figure 108 to address GOVUSERS, the scratchpad area in the DXEGOVA control block. You can use similar code to address the XCBUSERS scratchpad area in the DXEXCBA control block, by replacing GOVUSERS in the following example with XCBUSERS. WORK is the name of a DSECT, and WORKPTR is equated to general register 4. The WORK DSECT contains the definition for the fields that hold the information in the scratchpad areas.

The governor might also issue GETMAIN macros to obtain needed storage.

Figure 108. Establishing addressability to the governor scratchpad area
LA    WORKPTR,GOVUSERS
         USING WORK,WORKPTR


Go to the previous page Go to the next page

Downloads | Library | Support | Support Policy | Terms of use | Feedback
Copyright IBM Corporation 1982,2004 Copyright IBM Corporation 1982, 2004
timestamp Last updated: March, 2004