User`s guide

74 DC 900-1406E
BSCTRAN Programmer’s Guide
4.1 BSCASL Procedure
This procedure must be executed before records can be read from or written to the ICP.
It must be called on startup or when changing the link number, ICP number, or server
name.
Applications calling BSCRTI procedures (such as BSCREAD or BSCWRIT) must call
BSCDAS or BSCASL when changing the link number. BSCFTI procedures (BSCDIAL,
BSCRECV, BSCSEND, BSCSET, and BSCSHOW) automatically monitor changes in
link number.
Calling Sequence
ReturnCode = BSCASL (lnum, server)
Procedures Called
BSCRESET and BSCFWY
Functions
1. Assigns input and output channels to the server.
2. Configures ICP message buffer size to the value of the
DEFAULT /BUFSIZE option.
3. Saves link (
lnum) as a global value to be used by BSCRTI routines such as
BSCREAD and BSCWRIT.
4. Calls BSCRESET.
Arguments
lnum This is a pointer to an integer. It is a longword containing the link
number.
server This is a pointer to a descriptor. It is a character string containing the
server name. An ICP board number may be appended to the server