Define an ENQMODEL resource definition.
CREATE ENQMODEL >>-CREATE ENQMODEL(data-value)--ATTRIBUTES(data-value)----------> >--ATTRLEN(data-value)--LOGMESSAGE(cvda)----------------------->< CREATE ENQMODEL attribute values: |--+---------------------+--ENQNAME(char1-255)------------------> '-DESCRIPTION(char58)-' .-STATUS(ENABLED)--. >--+-----------------+--+------------------+--------------------| '-ENQSCOPE(char4)-' '-STATUS(DISABLED)-'
Conditions: INVREQ, LENGERR, NOTAUTH
The CREATE ENQMODEL command installs a ENQMODEL definition with the attribute specified on the command. It does not use a resource definition stored in the CSD. If there is already an ENQMODEL with the name you specify in the local CICS region, the new definition replaces the old one; if not, the new definition is added.
When CREATE is issued, the ENQMODEL is put into the WAITING state until there are no enqueues in the local system which match the ENQNAME pattern. It is then ENABLED or DISABLED, as specified in the CREATE command.
ENQMODELs forming nested generic enqnames must either be installed in the disabled state, or be installed in order, from the most to the least specific. If another ENQMODEL with the same or a less specific nested enqname is already installed enabled, INVREQ is returned to the caller.
For example: If an ENQMODEL containing AB* is installed, it must be discarded or disabled before creating an ENQMODEL with ABCD*.
A syncpoint is implicit in CREATE ENQMODEL processing, except when an exception condition is detected early in processing the command. Uncommitted changes to recoverable resources made up to that point in the task are committed if the CREATE executes successfully, and rolled back if not. See Creating resource definitions for other general rules governing CREATE commands