CRE Programmer's Guide
CRE Service Functions
Common Run-Time Environment (CRE) Programmer’s Guide—528146-004
6-5
CRE_File_Close_
CRE_File_Close_
The CRE_File_Close_ function closes the standard file that you specify.
The syntax for the TNS CRE environment: is:
The syntax for the native CRE environment is:
file_ordinal
identifies the standard file to close. You can use the following symbolic names for
file_ordinal:
disposition
is an optional parameter that specifies the tape position parameter for a call to the
FILE_CLOSE_ system procedure.
cplist
if present and its address value is nonzero in the TNS environment, is a checkpoint
list. In the native CRE environment, this parameter has no meaning and should be
left empty (it is used by COBOL for process pair execution).
Return Value
CRE_File_Close_ returns:
•
0 if the close operation is successful
•
A positive number, which is a file system error number
INT PROC CRE_File_Close_( file_ordinal, disposition, cplist )
EXTENSIBLE;
INT file_ordinal; ! in, required
INT disposition; ! in, optional
INT(32) .cplist; ! in/out, optional TNS only
INT PROC CRE_File_Close_( file_ordinal, disposition, cplist )
EXTENSIBLE;
INT file_ordinal; ! in, required
INT disposition; ! in, optional
INT(32) .EXT cplist; ! in/out, optional native only
CRE File Ordinal Symbolic Names
CRE^Standard^Input
CRE^Standard^Output
CRE^Standard^Log