gtpg2m2rGeneral Macros

GLMOD-Change Global Protect Key

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




label
A symbolic name can be assigned to the macro statement.

symbol1|GLOBAL1
symbol1 is a symbol equated to a storage protection key in CPSEQ. If omitted, GLOBAL1 is assumed.

Entry Requirements

R9 must contain the address of the ECB being processed.

Return Conditions

Programming Considerations

Examples

GLMOD
GLMOD GLOBAL3