CREATE CONNECTION
Define a CONNECTION in the local CICS region.
Conditions: ILLOGIC, INVREQ, LENGERR, NOTAUTH
Description
- CREATE CONNECTION with the ATTRIBUTES and ATTRLEN options
- CREATE SESSIONS
- Additional CREATE SESSIONS if desired (only one group of sessions is required, but you can define additional groups)
- CREATE CONNECTION with the COMPLETE option.
- Define other resources of any type, including other connections
- Issue a SYNCPOINT (or any command that implies one)
- Terminate your task (normally)
However, if you encounter an error or problem during the course of building a CONNECTION definition, you can terminate the process at any point by issuing a CREATE CONNECTION DISCARD command. If you do this, CICS discards the partial CONNECTION definition and any SESSIONS created for it.
Otherwise, when the final CREATE CONNECTION COMPLETE command is issued, CICS adds the CONNECTION and its SESSIONS to its resource definitions, replacing a CONNECTION definition of the same name if one exists.
CICS also performs an implicit SYNCPOINT command during the processing of the final CREATE for a connection, unless it contains an error that can be detected early in the processing. The syncpoint commits uncommitted changes to recoverable resources made up to that point in the task if the definition is successful, and rolls back changes, as if SYNCPOINT ROLLBACK had been issued, if the definition fails or ends in a DISCARD. See Creating resource definitions for other general rules governing CREATE commands.
Options
- ATTRIBUTES(data-value)
- specifies
the attributes of the CONNECTION being added. The list of attributes
must be coded as a single character string using the syntax shown
in CONNECTION attributes. See The ATTRIBUTES option for
general rules for specifying attributes, and CONNECTION
definition attributes for details about specific attributes.
Note: You can assign default values for all attributes of a CONNECTION definition by specifying an ATTRLEN value of 0. You still need to specify the ATTRIBUTES option, however, even though its value is not used.
- ATTRLEN(data-value)
- specifies the length in bytes of the character string supplied in the ATTRIBUTES option, as a halfword binary value. The length can be from 0 to 32767.
- COMPLETE
- specifies that the set of definitions for this CONNECTION is complete and should be added to the CICS system.
- CONNECTION(data-value)
- specifies the 4-character name of the CONNECTION definition to be added.
- DISCARD
- specifies that the CONNECTION definition under construction is not to be completed and that it and any SESSIONS created for it are to be discarded and not added.
- LOGMESSAGE(cvda)
- Specifies whether CICS logs the attributes used for the resource that
is created. CVDA values are as follows:
- LOG
- The resource attributes are logged to the CSDL transient data queue.
- NOLOG
- The resource attributes are not logged.
Conditions
- ILLOGIC
- RESP2 values:
- 2
- The command cannot be executed because an earlier CONNECTION or TERMINAL pool definition has not yet been completed.
- INVREQ
- RESP2 values:
- n
- There is a syntax error in the ATTRIBUTES string, or an error occurred during either the discard or resource definition phase of the processing. See RESP2 values for EXEC CICS CREATE and EXEC CICS CSD commands for information on RESP2 values.
- 7
- The LOGMESSAGE cvda value is not valid.
- 200
- The command was executed in a program defined with an EXECUTIONSET value of DPLSUBSET or a program invoked from a remote system by a distributed program link without the SYNCONRETURN option.
- LENGERR
- RESP2 values:
- 1
- The length specified in ATTRLEN is negative.
- NOTAUTH
- RESP2 values:
- 100
- The user associated with the issuing task is not authorized to use this command.
- 102
- The user associated with the task issuing the CREATE CONNECTION command is not an authorized surrogate of the user specified in SECURITYNAME.