User`s guide
88 DC 900-1406E
BSCTRAN Programmer’s Guide
Arguments
rdblock This is a pointer to a data structure of type TRANBUF. It receives the
data acknowledgment block from the ICP. See Section 4.8 on page 91
or the
BSCTRAN.INC include file for details of the data structure.
recbuf This is a pointer to a descriptor. It is a character string containing the
record to be sent. The maximum length is 4096 bytes. The record
must contain any appropriate record separator or count characters.
action This is a pointer to an integer. It is a longword containing the action
indicator. Using this parameter, the caller has total control over when
the write block is sent to the ICP. BSCWRIT does not insert any
record separator characters into the write block. Except for the BSC
protocol characters (which are transparent to the user), the caller has
total control of the block format.
a
Actions 1, 3, and 8 are used for ETB blocks to enable BSCWRIT to use the write rotate
window of two.
b
Actions 5, 7, and 12 are for the last record (or block) of a file when using the SEND
/NOTEOF option to concatenate files.
0 = Move record to write block only and return immediately to caller. The
maximum capacity of write block is defined by the DEFAULT /BUFSIZE
option.
1
a
= Move record and send block as ETB.
2 = Move record, send block as ETX, and wait for ACK.
3
a
= Move record and send block as transparent ETB.
4 = Move record, send block as transparent ETX, and wait for ACK.
5
b
= Move record, send block as ETB, and wait for ACK.
7
b
= Move record, send block as transparent ETB, and wait for ACK.
8
a
= Move record and send block as transparent 2780 ETB.
10 = Move record, send block as transparent 2780 ETX, and wait for ACK.
12
b
= Move record, send block as transparent 2780 ETB, and wait for ACK.