Condition codes for IMFEXEC VENQ
IMFCC value | Description | IMFRC value | Description |
---|---|---|---|
0 | Enqueue received; no warning applies. | 0 | Enqueue obtained or is obtainable. |
4 | Enqueue already held; warning applies. | 8 | EXEC already has control of the enqueue. |
8 | Enqueue not obtained; warning applies. | 14 | Previous request for enqueue has been made for the same task; the EXEC does not have control of the enqueue. |
8 | Enqueue not obtained; warning applies. | 18 | Limit for concurrent requests was reached. |
16 | Syntax error occurred. | N/A | Not applicable. |
If you use IMFEXEC VENQ with the TEST parameter, a different set of condition and return codes are returned in IMFCC and IMFRC, as shown in the following table
IMFCC value | Description | IMFRC value | Description |
---|---|---|---|
0 | Enqueue obtainable; no warning applies. | 0 | Enqueue obtained or is obtainable. |
4 | Enqueue already held; warning applies. | 8 | EXEC already has control of the enqueue. |
8 | Enqueue not obtainable; error warning applies. | 4 | Resource is not available. |
8 | Enqueue not obtainable; error warning applies. | 14 | Previous request for enqueue has been made for the same task; the EXEC does not have control of the enqueue. |
16 | Syntax error occurred. | N/A | Not applicable. |
Example 1
This example command establishes a shared ENQUEUE for the name STARTUP.
'IMFEXEC VENQ 'STARTUP' SHR"
CLIST example:
Example 2
This example command tests whether the current EXEC can obtain shared access to the resource PRODCICS.
REXX EXEC example:
CLIST example: