The OPSENQ function performs two related classes of operations:
Note: Leaving the resources queued can leave your system inoperable.
Note: The OPSENQ function can be used in OPS/REXX or AOF rules.
OPSENQ has the following format:
var = OPSENQ(func [,major][,minor][,type][,scope][,ret])
Specify one of the following values:
Note: Functions E and D are related and have a similar set of rules. Functions C and Q are also related but have a different set of rules.
The following arguments apply only to the E and D functions:
(Optional) Identifies the major name of the resource. By convention, the major and minor names together identify the resource. If you omit this argument, the default major name is the value of the ENQ parameter that, in turn, has a default value of OPS/MVS.
Limits: 1-8 characters
(Optional) Identifies the minor name of the resource. If the OPSENQ function was called from an AOF rule, the default minor name is RULEOPxxssssssss.rrrrrrrr, where OPxx is the subsystem name and ssssssss.rrrrrrrr is the name of the rule set and rule that issued the enqueue. In all other cases, the default name is RULEuuuuuuuuppppppppp, where uuuuuuuu is the current TSO user ID or job name and ppppppppp is the name of the current REXX program that issued the enqueue.
Limits: 1-255 characters
(Optional) Specifies the type of enqueue request, either E for exclusive or S for shared. This argument is not used for dequeue function calls.
Default: E
(Optional) Specifies the scope of the enqueue request. You can specify the following values:
(Optional) Specifies the type of return for the enqueue request. The return has one of the following values:
Default: HAVE
The following arguments apply only to the C and Q functions:
Identifies the major name of the resource for which you want to obtain information. By convention, the major and minor names together identify the resource. If you omit this argument, the default major name that is used for the scan is * (that is, all major names).
Limits: 1-8 characters
Note: The major names that are associated with the C function can be *. However, the Q function requires that either the major names or the minor names must be more specific than a wildcard.
Identifies the minor name of the resource for which you want to obtain information. If you omit this argument, the default minor name that is used for the scan is * (that is, all minor names).
Limits: 1-255 characters
Note: The minor names that are associated with the C function can be *. However, the Q function requires either the major names or the minor names to be more specific than a wildcard.
This argument must either be omitted or specified as a single wildcard character *. type is used only as a placeholder.
Limits the scan to ENQs with the specified scope. You can specify the following values:
Note: The scope argument has no default value.
This argument is not applicable to the C and Q functions and must be omitted.
|
Copyright © 2014 CA Technologies.
All rights reserved.
|
|