SEND (LUTYPE6.1)

Send data on an LUTYPE6.1 conversation.

SEND (LUTYPE6.1)

Read syntax diagramSkip visual syntax diagramSENDSESSION( name)WAITINVITELASTATTACHID( name)FROM( data-area)LENGTH( data-value)FLENGTH( data-value)FMHDEFRESP

Conditions: CBIDERR, INVREQ, LENGERR, NOTALLOC, SIGNAL, TERMERR

 

Description

SEND sends data to a conversation partner on an LUTYPE6.1 conversation.

Options

ATTACHID(name)
Specifies that an attach header (created by a BUILD ATTACH command) is to precede, and be concatenated with, the user data supplied in the FROM option. “name” (1–8 characters) identifies the attach header control block to be used in the local task.
DEFRESP
Indicates that a definite response is required when the output operation completes.
FLENGTH(data-value)
An alternative to the LENGTH option. For architectural reasons, this option is limited to a maximum of 32 KB for all terminal-related SEND commands.
FMH
Specifies that a function management header is included in the data to be written. If the ATTACHID option is specified as well, the concatenated FMH flag is set in the attach FMH.

The use of FMH is optional and is not supported for all terminal types. If not supplied, CICS® takes no action, except for 3600/4700 terminals, where an FMH is mandatory. In this case, if FMH is not specified, CICS supplies one and places it in the first 3 bytes of the message, which you must reserve for this purpose.

FROM(data-area)
Specifies the data to be written to the logical unit, or a partner transaction.
INVITE
For the SEND (APPC) command, an application can use the INVITE option to add a change-direction indicator to data already sent to a process in a connected APPC system. Control data is not transmitted by CICS until the subsequent WAIT or a SYNCPOINT command, unless CONFIRM or WAIT is also coded on the GDS SEND INVITE command.

For the other SEND commands, INVITE specifies that the next terminal control command to be run for this facility is a RECEIVE. This allows optimal flows to occur.

LAST
Specifies that this is the last SEND command for a transaction.
LENGTH(data-value)
Specifies the length, as a halfword binary value, of the data to be written. For a description of a safe upper limit, see LENGTH options in CICS commands.
SESSION(name)
Specifies the symbolic identifier (1–4 characters) of a session TCTTE. This option specifies the alternate facility to be used. If this option is omitted, the principal facility for the task is used.
WAIT
Specifies that processing of the command must be completed before any subsequent processing is attempted.

If the WAIT option is not specified, control is returned to the application program when processing of the command starts. A subsequent input or output request (terminal control, BMS, or batch data interchange) to the terminal associated with the task causes the application program to wait until the previous request completes.

Conditions

Some of the following conditions might occur in combination. If more than one occurs, only the first is passed to the application program. EIBRCODE, however, is set to indicate all the conditions that occurred.

62 CBIDERR
Occurs if the requested attach header control block named in ATTACHID cannot be found.

Default action: terminate the task abnormally.

16 INVREQ
RESP2 values:
200
A distributed program link server application attempted to send on its function-shipping session (its principal facility).

For SEND (APPC), a distributed program link server application specified the function-shipping session (its principal facility) on the CONVID option.

Also occurs (RESP2 not set) in any of the following situations:
  • The CONFIRM option has been specified, but the APPC conversation is not sync level 1 or 2.
  • The SEND command has been used on an APPC conversation that is not a mapped conversation or that is not using the EXEC CICS interface.

Default action: terminate the task abnormally.

22 LENGERR
Occurs if an out-of-range value is supplied in the LENGTH or FLENGTH option.

Default action: terminate the task abnormally.

61 NOTALLOC
Occurs if the CONVID value in the command does not relate to a conversation that is owned by the application, or if the facility specified in the command is not owned by the application.

Default action: terminate the task abnormally.

24 SIGNAL
Occurs when an inbound SIGNAL data flow control command is received from a logical unit or session. EIBSIG is always set when an inbound signal is received.

Default action: ignore the condition.

81 TERMERR
Occurs for a session-related error. Any action on that conversation other than a FREE causes an ATCV abend.

A CANCEL TASK request by a user node error program (NEP) might cause this condition if the task has an outstanding terminal control request active when the node abnormal condition program handles the session error.

Default action: terminate the task abnormally with abend code ATNI.