CRE Programmer's Guide
CRE Service Functions
Common Run-Time Environment (CRE) Programmer’s Guide—528146-004
6-14
CRE_File_Open_
•
A positive number, which is a file system error number
•
A negative number, which is the negation of one of the following CRE error
numbers:
Considerations
•
Opening standard files
The CRE manages shared access to only three files: standard input, standard
output, and standard log. Standard files are used as a source of sequential records
when specified for input (standard input) and as a destination to which to write
sequential records when specified as output (standard output and standard log).
See Section 2, CRE Services
, for a full description of the three standard files.
To open a standard file, your program must call CRE_File_Open_. Except for
routines written in TAL, the run-time library for each language calls
CRE_File_Open_. Only TAL routines must call CRE_File_Open_ explicitly.
For each standard file, your program must call CRE_File_Open_ before it calls any
other CRE functions for that file. CRE_File_Open_ opens each standard file
according to the I/O model of the language in which your program’s main routine is
written.
To access files other than standard files, your program (or its run-time
environment) must use standard file system procedures such as the FILE_OPEN_
system procedure.
The device type for standard input must be a process, $RECEIVE (in the TNS
CRE environment), a disk, or a terminal.
Error Code Cause
16 Checkpoint list exhausted
17 Cannot obtain control space
20 Cannot utilize file name
55 Missing or invalid parameter
57 Parameter value not accepted
63 Undefined shared file
65 Invalid attribute value
66 Unsupported file device
67 Access mode not accepted
68 Nowait value not accepted
69 Syncdepth not accepted
71 Inconsistent attribute value
77 EDITREADINIT failed
79 OPENEDIT failed