The SEND statement causes a message, a message segment, or a portion of a message or segment to be released to one or more output queues maintained by the Message Control System (MCS).
Format 1:Send (Simple)
Format 2:Send (Advancing/Replacing)
cd-name-1 must reference an output CD or an input-output CD.
identifier-2 must reference a one-character integer without an operational sign.
When identifier-3 is used in the ADVANCING phrase, it must be the name of an elementary integer item.
When the mnemonic-name phrase is used, the name must be identified with a feature-name that is a channel-name.See the syntax and rules for mnemonic-name-2.
integer-1 or the value of the data item referenced by identifier-3 may be zero.
The following general rules apply to both formats of the SEND statement:
If the content of the text length data item of the area referenced by cd-name-1 is zero, no characters of the data item referenced by identifier-1 are transferred.
If the content of the text length data item of the area referenced by cd-name-1 is outside the range of zero through the size of the data item referenced by identifier-1 inclusive, an error is indicated by the value of the status key data item of the area referenced by cd-name-1, and no data is transferred.
However, the MCS does not transmit any portion of a message to a communication device until the entire message has been released to the MCS.
However, the message does not logically exist for the MCS and hence cannot be sent to a destination.
For Format 2:
Any character other than ‘1’, ‘2’ or ‘3’ is interpreted as ‘0’.
If the content of the data item referenced by identifier-2 is other than ‘1’, ‘2’ or ‘3’, and identifier-1 is not specified, an error is indicated by the value in the data item referenced by data-name-3 (STATUS KEY) of the area referenced by cd-name-1, and no data is transferred.
Data Item Contents
The ADVANCING phrase allows control of the vertical positioning of each message or message segment on a communication device where vertical positioning is applicable. If vertical positioning is not applicable on the device, the ADVANCING phrase is ignored.
If identifier-2 is specified and the content of the data item referenced by identifier-2 is zero, the ADVANCING phrase is ignored.
On a device where vertical positioning is applicable and the ADVANCING phrase is not specified, the default advance is one line.
If vertical positioning is applicable, the following rules apply to the ADVANCING phrase:
SEND Statement Examples
COBOL Related Interview Questions
|VSAM Interview Questions||IBM - VSAM Interview Questions|
|IBM-CICS Interview Questions||JCL Interview Questions|
|IBM DB2 Interview Questions||IBM-JCL Interview Questions|
|DB2 Using SQL Interview Questions||IBM-JCL&VSAM Interview Questions|
|IBM Mainframe Interview Questions||COBOL, CICS, JCL, VSAM, DB2 Interview Questions|
|DB2 SQL Programming Interview Questions||IMS/DB Interview Questions|
|Mainframe DB2 Interview Questions|
Procedure Division Statements
All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.