User`s guide
58 DC 900-1406E
BSCTRAN Programmer’s Guide
3.4 BSCRECV Procedure
Calling Sequence
ReturnCode = BSCRECV (fname, lnum, server, dtime, fixed,
recl, binary, forms, display)
Procedures Called
BSCDAS, BSCASL, BSCREAD, and BSCRESET
Functions
1. If there is a change in the server name or ICP device, calls BSCASL to assign input
and output channels.
2. Opens the file (
fname) with the specified format.
3. Calls BSCREAD to get a record from the ICP link (
lnum).
4. Performs forms-control translation if required.
5. Writes the record to the file.
6. Continues reading and writing records until error, timeout (
dtime), or end-of-file
is returned.
7. Closes the file.
8. Logs the transmission statistics.
Arguments
fname This is a pointer to a descriptor. It is a character string containing the
file specification of the file to receive data blocks from the ICP. The
maximum length is 255 characters.