Condition codes for IMFEXEC VENQ


The VENQ command returns without errors if the enqueue was already obtained for a previous VENQ issued in the same EXEC.

Condition codes and the corresponding return codes (listed in the variable IMFRC) are listed in the following table. The IMFRC value represents the return code returned from the actual MVS enqueue macro. 

Related topic

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.

/* REXX */
'IMFEXEC VENQ 'STARTUP' SHR"

CLIST example:

IMFEXEC VENQ 'STARTUP' SHR

Example 2

This example command tests whether the current EXEC can obtain shared access to the resource PRODCICS.

REXX EXEC example:

 'IMFEXEC VENQ 'PRODCICS' SHR TEST'

CLIST example:

 IMFEXEC VENQ 'PRODCICS' SHR TEST

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

BMC AMI Ops Automation 8.4