gtpg2m2r | General Macros |
Use this macro to modify any global fields, core resident application data records, and tables, which reside in an area of main storage that carries a storage protection key different from that in the PSW used for application programs. This macro changes the storage protection key in the PSW for the application program concerned to match that of the global area and core resident data.
GLMOD performs this function by generating a KEYCC macro. To maintain uniformity, and flexibility in case of future system changes, application programs should use GLMOD, not KEYCC.
The PSW storage protection key must be restored after core modification by using the file keyword macro (FILKW). Between issuing GLMOD and FILKW, the application program must not issue any ENTER or WAITC macros (which may alter the PSW key), nor can it store data in working storage (ECB, core blocks).
See also the global area program material in the TPF System Installation Support Reference.
Format
|
Entry Requirements
R9 must contain the address of the ECB being processed.
Return Conditions
Programming Considerations
Examples
GLMOD GLMOD GLOBAL3