TAL Programmer's Guide

CRE Guidelines for TAL
Mixed-Language Programming
17–48 096254 Tandem Computers Incorporated
Accessing $RECEIVE $RECEIVE is a special file through which a routine can receive messages from the
operating system, from your backup process, or from another process. Routines
written in any language supported by the CRE can read $RECEIVE. The routines in a
program can access $RECEIVE by calling either CRE routines only or system
procedures only.
CRE Routines
A program can use CRE routines to access $RECEIVE if the program accesses
$RECEIVE from:
TAL routines only
COBOL routines only
FORTRAN routines only
Both COBOL and TAL routines
Both FORTRAN and TAL routines
CRE Routines for accessing $RECEIVE include:
Action CRE Routine
Request an open to $RECEIVE CRE_RECEIVE_OPEN_CLOSE_ with the open variant
Read messages from $RECEIVE CRE_RECEIVE_READ_
Reply to messages from $RECEIVE CRE_RECEIVE_WRITE_
If $RECEIVE is not open when the first request occurs, a CRE routine opens $RECEIVE
for exclusive access. For each subsequent request, the CRE routine grants a connection
to the same file open. For more information on the CRE routines, see the CRE
Programmer’s Guide.
System Procedures
System procedures for accessing $RECEIVE include:
Action System Procedure
Request an open to $RECEIVE FILE_OPEN_
Read, and reply to, messages from
$RECEIVE
READUPDATE[X] and REPLY[X]
For more information on the system procedures, see the Guardian Programmer’s Guide
and the Guardian Procedure Calls Reference Manual.