Guardian Application Conversion Guide
Allowing a High-PIN Creator
Converting TAL Applications
096047 Tandem Computers Incorporated 3–43
Reading and Processing Process Open and Process Close System Messages
When processing the startup sequence, your program might read the C-series -30
(Process open) and -31 (Process close) system messages from $RECEIVE.
To allow a high-PIN creator process, convert your server to read the D-series -103
(Process open) and -104 (Process close) system messages.
To process D-series system messages correctly, you need to change the size of the read
buffer to allow for longer D-series system messages. Your existing process might read
these messages using the READ[X] or READUPDATE[X] procedure in code similar to
the following:
STRING .message^buffer[0:199]; ! Message buffer (200 bytes).
...
read^count := 200;
CALL READX (receive^file^number,
message^buffer,
read^count,
bytes^read);
The lengths shown for each system message are subject to change. Use a READ[X] or
READUPDATE[X] message buffer at least 250 bytes in length. Also, use a
read^count
parameter value of 250 bytes.
If you use the declarations in the ZSYSTAL file, use the ZSYS^VAL^SMSG^LEN
LITERAL for the system-message length in bytes or the ZSYS^VAL^SMSG^WLEN
LITERAL for the length in words:
STRING .message^buffer[0:ZSYS^VAL^SMSG^LEN - 1]; ! Message
! buffer (250 bytes)
...
read^count := ZSYS^VAL^SMSG^LEN;
CALL READX (receive^file^number,
message^buffer,
read^count,
bytes^read);