User`s guide
62 DC 900-1406E
BSCTRAN Programmer’s Guide
3.6 BSCSEND Procedure
Calling Sequence
ReturnCode = BSCSEND (fname, lnum, server, dtime, trans,
binary, card, noteof, display, dak)
Procedures Called
BSCDAS, BSCASL, BSCWRIT, BSCRESET, and BSCFWY
Functions
1. Configures the DAK node to dak and issues a Flush Queue command to the ICP.
2. Opens the file (
fname).
3. If there is a change in the server name or ICP device, calls BSCASL to assign input
and output channels.
4. Accumulates file records one at a time until the buffer contains enough to fill the
write block without splitting records. Inserts appropriate record separator char-
acter (2780 or 3780) between records.
Exceptions
a. If the
binary flag is true, no record separators are inserted, and each record
is sent separately to the ICP.
b. If the
DEFAULT /RECORD option is set for 2780 records, and the trans flag is
true, each record is preceded by a two-byte count, then packed into the
write block without splitting records.
5. Calls BSCWRIT to send the block to link (
lnum) and get ACK from the ICP.
6. Continues sending blocks until error, timeout (
dtime), or end-of-file is returned.
If timeout occurs, issues a Flush Queue command to the ICP.