User`s guide
32 DC 900-1406E
BSCTRAN Programmer’s Guide
Caution
Be aware of the implications of using the SET /LOCKSTART com-
mand. After a link is enabled with
/LOCKSTART, it remains enabled
(even if BSCTRAN terminates) until the link is disabled with a
SET /STOP command. A link that remains enabled after termina-
tion of a BSCTRAN process (due to a
LOCKSTART) continues receiv-
ing messages into its data queues until it either runs out of buffers,
or until a new BSCTRAN process references (attaches) the same
link. As soon as an attach is made, data is sent to BSCTRAN.
Therefore, in order to receive data accumulated on a link, the first
command must be
RECEIVE. Any other command discards received
data that is not relevant to the command. For example, a
SHOW
command discards any data packets that are not responses to its
report requests.
/STOP This option stops the link (
link#). A link must be stopped
before issuing a
SET /PARn=d command. Note that when the
BSCTRAN program is exited, all active links are automatically
stopped.
The following commands show how to set the data rate (
/PAR1) directly, obtain a help
prompt for character set translation (
/PAR7), and start the link:
BSC> SET 2 spot_1 /STOP
BSC> SET /PAR1=9/PAR7/START
PAR7(Char Set Trans) 0=ASCII 1=EBCDIC 2=ASC/CRC (0 to 2): 1
Note
The message “ERROR: Link not started” after an initial SET /START
command is normal until the second link is up.
Note
The message “WARNING: Link already started” is possible if a pre-
vious BSCTRAN process started the link with SET /LOCKSTART.