Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
$GETLOK – Acquire the MVS CMS, LOCAL, or JES2 job lock z/OS JES2 Macros SA32-0996-00 |
|
Use $GETLOK to acquire the MVS™ CMS, LOCAL, or JES2 job lock depending on the type of lock requested and the environment from which it is requested. Use $GETLOK to obtain the cross-memory services (CMS) lock to serialize the JES2 main task with routines that are executing for tasks in other address spaces. The CMS lock is required when modifying certain operating system control blocks and in some cases when interfacing with JES2 code that is running in support of the subsystem interface and access method interface in other address spaces. After obtaining the CMS lock, the user should not execute any code that allows the execution of any SVC instructions until after first freeing the lock through $FRELOK macro instruction. Obtaining the local lock (LOCAL) serializes the use of resources such as queues and control blocks among several tasks running within the same address space. The functional subsystem interface (FSI) service routines running in the functional subsystem address space require the local lock for serialization of queues, buffer pools, and control blocks so many separate functional subsystem application (FSA) tasks can use these resources. Obtaining the JES2 job lock (JOB) prevents job queue elements (JQEs) from being changed by any code except the issuer of the job lock. Note: The reason for executing the $GETLOK macro instruction should
be fully documented in your code.
Format description>>-+--------+--$GETLOK------------------------------------------> '-symbol-' >--+-------------------------------------------+----------------> | .-CMS--------------------------. | '-TYPE--=--+-LOCAL------------------------+-' '-(--JOB--,--JQE--=--relexp--)-' >--+------------------+---------------------------------------->< | .-YES-. | '-WAIT--=--+-NO--+-'
On return from the $GETLOK routine, register 15 will contain a
return code as follows:
Environment
|
Copyright IBM Corporation 1990, 2014
|