z/OS MVS Programming: Resource Recovery
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Delete_Context_Interest (CTXDINT, CTX4DINT)

z/OS MVS Programming: Resource Recovery
SA23-1395-00

  • CTXDINT is for AMODE(31) callers.
  • CTX4DINT is for AMODE(64) callers and allows parameters in 64 bit addressable storage.

A resource manager calls the Delete_Context_Interest service to delete its interest in a native context or a privately-managed context. In response to the call, context services issues a return code.

Note: If your resource manager does not issue a Delete_Context_Interest call, the system deletes the context interest when the context ends.

Environment

The requirements for the resource manager are:

Programming requirements

Either link edit the resource manager's object code with the linkable stub routine CTXCSS (31 bit) or CTX4CSS (64 bit) from SYS1.CSSLIB, or LOAD and CALL the service. The high level language (HLL) definitions for the callable service are:

HLL definition Description
CTXASM 390 Assembler declarations
CTXC C/390 declarations

Restrictions

To call the service, the resource manager associated with the context interest token specified in the call must be in set state, which means it has registered and called the Set_Exit_Information service, specifying context services as the exit manager.

Input register information

Before issuing the call, the resource manager does not have to place any information into any register unless using it in register notation for the parameters, or using it as a base register.

Output register information

When control returns to the resource manager, the GPRs contain:.
Register
Contents
0-1
Used as work registers by the system
2-13
Unchanged
14
Used as a work register by the system
15
Return code
When control returns to the resource manager, the ARs contain:.
Register
Contents
0-1
Used as work registers by the system
2-13
Unchanged
14-15
Used as work registers by the system

Some resource managers depend on register contents remaining the same before and after issuing a call. If the system changes the contents of registers on which the resource manager depends, the resource manager must save them before calling the service, and restore them after the system returns control.

Performance implications

None.

Syntax

Write the call as shown in the syntax diagram. You must code the parameters in the CALL statement as shown.

Parameters

The parameters are explained as follows:
return_code
Returned parameter
  • Type: Integer
  • Character Set: N/A
  • Length: 4 bytes

Contains the return code from the Delete_Context_Interest service.

,context_interest_token
Supplied parameter
  • Type: Character string
  • Character Set: No restriction
  • Length: 16 bytes

Specifies the context interest token that identifies the context interest to be deleted. Your resource manager received the token from the Express_Context_Interest service.

ABEND codes

The call might result in an abend X'AC7' with a reason code of either X'00120000' or X'00120001'. See z/OS MVS System Codes for the explanations and actions.

Return codes

When the service returns control to the resource manager, GPR 15 and return_code contain a hexadecimal return code.

Return Code in:
Hexadecimal
Equate Symbol

Meaning and action

0
CTX_OK

Meaning: Successful completion.

Action: None.

103
CTX_INTERRUPT_STATUS_INV

Meaning: Program error. The resource manager is disabled; the interrupt status must be enabled for I/O and external interrupts. The system rejects the service call.

Action: Check the resource manager for a probable coding error. Correct the resource manager and rerun it.

105
CTX_LOCKS_HELD

Meaning: Program error. The resource manager is holding one or more locks; no locks must be held. The system rejects the service call.

Action: Check the resource manager for a probable coding error. Correct the resource manager and rerun it.

107
CTX_UNSUPPORTED_RELEASE

Meaning: Environmental error. The system release does not support this service. The system rejects the service call.

Action: Remove the resource manager from the system, and install it on a system that supports context services. Then rerun the resource manager.

365
CTX_CI_TOKEN_INV

Meaning: Program error. The context interest token specified in the call is not valid. The system rejects the service call.

Action: Check the resource manager for a probable coding error. Correct the resource manager and rerun it.

FFF
CTX_UNEXPECTED_ERROR

Meaning: System error. The service that was called encountered an unexpected error. The system rejects the service call.

Action: Search problem reporting databases for a fix for the problem. If no fix exists, contact the IBM® Support Center.

Example

In the pseudocode example, the resource manager issues a call to delete an interest in a context. Storage for the call parameters has been allocated.
⋮
CI_TOKEN = CONTEXT_INTEREST_TOKEN
CALL CTXDINT(RC,CI_TOKEN)
IF RC ≠ CTX_OK THEN
    /* handle error */
⋮

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014