CREATE CONNECTION

Define a CONNECTION in the local CICS region.

Read syntax diagramSkip visual syntax diagramCREATE CONNECTION
 
>>-CREATE CONNECTION(data-value)-------------------------------->
 
>--+-ATTRIBUTES(data-value)--ATTRLEN(data-value)-+-------------><
   +-LOGMESSAGE(cvda)----------------------------+
   +-COMPLETE------------------------------------+
   '-DISCARD-------------------------------------'
 
CREATE CONNECTION attribute values:
 
   .-ACCESSMETHOD(VTAM)-----.  .-ATTACHSEC(LOCAL)------.
|--+------------------------+--+-----------------------+-------->
   +-ACCESSMETHOD(INDIRECT)-+  +-ATTACHSEC(IDENTIFY)---+
   +-ACCESSMETHOD(IRC)------+  +-ATTACHSEC(MIXIDPE)----+
   '-ACCESSMETHOD(XM)-------'  +-ATTACHSEC(PERSISTENT)-+
                               '-ATTACHSEC(VERIFY)-----'
 
   .-AUTOCONNECT(NO)--.  .-BINDSECURITY(NO)--.
>--+------------------+--+-------------------+------------------>
   +-AUTOCONNECT(ALL)-+  '-BINDSECURITY(YES)-'
   '-AUTOCONNECT(YES)-'
 
   .-CONNTYPE(SPECIFIC)-.  .-DATASTREAM(USER)-----.
>--+--------------------+--+----------------------+------------->
   '-CONNTYPE(GENERIC)--'  +-DATASTREAM(LMS)------+
                           +-DATASTREAM(SCS)------+
                           +-DATASTREAM(STRFIELD)-+
                           '-DATASTREAM(3270)-----'
 
>--+---------------------+--+---------------+------------------->
   '-DESCRIPTION(char58)-'  '-INDSYS(char4)-'
 
   .-INSERVICE(YES)-.  .-MAXQTIME(NO)-----.
>--+----------------+--+------------------+--------------------->
   '-INSERVICE(NO)--'  '-MAXQTIME(0-9999)-'
 
>--+----------------+--+----------------+----------------------->
   '-NETNAME(char8)-'  +-PROTOCOL(APPC)-+
                       +-PROTOCOL(EXCI)-+
                       '-PROTOCOL(LU61)-'
 
   .-PSRECOVERY(SYSDEFAULT)-.  .-QUEUELIMIT(NO)-----.
>--+------------------------+--+--------------------+----------->
   '-PSRECOVERY(NONE)-------'  '-QUEUELIMIT(0-9999)-'
 
   .-RECORDFORMAT(U)--.
>--+------------------+--+---------------------+---------------->
   '-RECORDFORMAT(VB)-'  '-REMOTESYSNET(char8)-'
 
>--+-------------------------------------------+---------------->
   '-REMOTESYSTEM(char4)-+-------------------+-'
                         '-REMOTENAME(char4)-'
 
                            .-SINGLESESS(NO)--.
>--+---------------------+--+-----------------+----------------->
   '-SECURITYNAME(char8)-'  '-SINGLESESS(YES)-'
 
   .-USEDFLTUSER(NO)--.  .-XLNACTION(KEEP)--.
>--+------------------+--+------------------+-------------------|
   '-USEDFLTUSER(YES)-'  '-XLNACTION(FORCE)-'
 

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

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:

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 ATTRIBUTES option for general rules for specifying attributes, and the CONNECTION section in the CICS® Resource Definition Guide 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
specifies whether CICS logs the attributes used for the resource being created to the CSDL transient data queue. CVDA values are:
LOG
The resources attributes are logged to the CSDL transient data queue.
NOLOG
The resources attributes are not logged to the CSDL transient data queue.

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 Appendix C. EXEC CICS CREATE RESP2 values 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.
[[ Contents Previous Page | Next Page Index ]]