COBOL Manual for TNS and TNS/R Programs

HP COBOL CRE Support
HP COBOL Manual for TNS and TNS/R Programs522555-006
18-4
Shared File Operations
Shared File Operations
A CRE HP COBOL program shares certain file operations with other programs in its
run unit. The shared file operations are associated with these files. Other file
operations are not shared.
Standard Output File
For DISPLAY statements, it is the default file (no UPON phrase is specified).
Standard Input File
For ACCEPT statements, it is the default file (no FROM phrase is specified). This
file can be a disk file, including an EDIT file.
Execution Log File
The HP COBOL run-time diagnostic messages are written to this file. It is normally
the home terminal, but can be selected by PARAM EXECUTION-LOG.
$RECEIVE File
It is specified in the RECEIVE-CONTROL paragraph or by a TACL ASSIGN
command.
Any program in the run unit can read from or write to the preceding files and there is
only one shared file connector. In the case of the $RECEIVE File, HP COBOL has
high-level interface to it, but programs written in other languages must make special
calls to CRE routines to share it. In the case of the other files listed previously, sharing
is done by concurrent opens of the file.
$RECEIVE Processing
$RECEIVE processing in the non-CRE environment and the CRE differ in:
EXTERNAL Clause
MESSAGE SOURCE Clause
REPORT Clause
Message Format
Message Replies
The material in this topic applies only to CRE HP COBOL programs that read and write
$RECEIVE. It does not apply to non-CRE programs, even if they read and write
$RECEIVE.