Exchange/SNA Manual

OPEN Procedure
Exchange/SNA System Procedure Calls
5–12 104700 Tandem Computers Incorporated
OPEN Procedure The OPEN procedure establishes communication between your program and a
subdevice supported by the Exchange/SNA line server.
CALL OPEN (
filename
,
filenum
, [
flags
] );
filename
INT:ref:12
is the name (in internal name format) of the Exchange/SNA line server and the
subdevice that you want to use. The line server must already exist before you can
establish communication with it. Use the Exchange/SNA CONNECT command
to start the line server.
You can use the FNAMEExpand procedure to convert the line server and
subdevice names from an external name format to the required internal name
format. The required internal name format is shown below.
Local Line Server:
filename
[0].<0:7> = $ (ASCII dollar sign)
filename
[0].<8:15> = first character of the line
server’s name
filename
[1:3] = remainder of the line server’s
name (blank-filled if needed)
or
Remote Line Server:
filename
[0].<0:7> = \ (ASCII backslash)
filename
[0].<8:15> = system number, in octal
filename
[1:3] = the line server’s name
(blank-filled if needed)
Subdevice Name:
filename
[4].<0:7> = # (ASCII pound sign)
filename
[4].<8:15> = first character of the
subdevice’s name
filename
[5:7] = remainder of the subdevice’s
name (blank-filled if needed)
filename
[8:11] = all blanks