CREATE CONNECTION

Define a CONNECTION in the local CICS region.

CREATE CONNECTION

Read syntax diagramSkip visual syntax diagramCREATE CONNECTION( data-value)ATTRIBUTES( data-value)ATTRLEN( data-value)LOGNOLOGLOGMESSAGE( cvda)COMPLETEDISCARD
CREATE CONNECTION attribute values
Read syntax diagramSkip visual syntax diagramDESCRIPTION( char58)ACCESSMETHOD(VTAM)ACCESSMETHOD(INDIRECT)ACCESSMETHOD(IRC)ACCESSMETHOD(XM)ATTACHSEC(LOCAL)ATTACHSEC(IDENTIFY)ATTACHSEC(MIXIDPE)ATTACHSEC(PERSISTENT)ATTACHSEC(VERIFY)AUTOCONNECT(NO)AUTOCONNECT(ALL)AUTOCONNECT(YES)BINDSECURITY(NO)BINDSECURITY(YES)CONNTYPE(SPECIFIC)CONNTYPE(GENERIC)DATASTREAM(USER)DATASTREAM(LMS)DATASTREAM(SCS)DATASTREAM(STRFIELD)DATASTREAM(3270)INDSYS( char4)INSERVICE(YES)INSERVICE(NO)MAXQTIME(NO)MAXQTIME( 0-9999)NETNAME( char8)PROTOCOL(APPC)PROTOCOL(EXCI)PROTOCOL(LU61)PSRECOVERY(SYSDEFAULT)PSRECOVERY(NONE)QUEUELIMIT(NO)QUEUELIMIT( 0-9999)RECORDFORMAT(U)RECORDFORMAT(VB)REMOTESYSNET( char8)REMOTESYSTEM( char4)REMOTENAME( char4)SECURITYNAME( char8)SINGLESESS(NO)SINGLESESS(YES)USEDFLTUSER(NO)USEDFLTUSER(YES)XLNACTION(KEEP)XLNACTION(FORCE)
Note: VTAM is now z/OS Communications Server.

Conditions: ILLOGIC, INVREQ, LENGERR, NOTAUTH

Note to COBOL programmers: In the syntax above, you must use ATTRIBUTES(data-area) instead of ATTRIBUTES(data-value).

Description

The CREATE CONNECTION commands, in combination with the CREATE SESSIONS commands, install CONNECTION and SESSIONS definitions with the attribute specified on the command to the local CICS region. They do not use resource definitions stored in the CSD. See Creating resource definitions for other general rules about CREATE commands.
Note: CREATE CONNECTION creates an MRO, APPC, or LUTYPE6.1 communication link to a remote system. See also CREATE IPCONN. Like a CONNECTION, an IPCONN defines a communication link to a remote system, but in this case the connection uses the TCP/IP protocol.
To create a new CONNECTION, you issue a series of commands in this order:
  1. CREATE CONNECTION with the ATTRIBUTES and ATTRLEN options
  2. CREATE SESSIONS
  3. Additional CREATE SESSIONS if desired (only one group of sessions is required, but you can define additional groups)
  4. CREATE CONNECTION with the COMPLETE option.
The CONNECTION is not added until all of these steps take place. During the time the definition is being built (that is, between the initial and final CREATE CONNECTIONs), you may not:
  • 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.