CRE Programmer's Guide

Common Language Utility (CLU) Library Functions
Common Run-Time Environment (CRE) Programmer’s Guide528146-004
9-14
Return Value
open_flag
If call_type is 0, open_flag is a variable to contain the retrieved open mode
value of the FCB. The retrieved value is one of the following:
If
call_type is 1, open_flag is ignored.
Return Value
CLU_Process_File_Name_ returns one of the following values:
0 Closed The FCB is not in an open mode.
1 Locked The FCB is not in an open mode.
A COBOL variant of Closed.
2 Input The FCB is open for input operations.
4 Output The FCB is open for output operations.
5 Extend The FCB is open for output operations.
A COBOL variant of Output.
6 I-O The FCB is open for input and output operations.
Return
Value Meaning
-2 The operation is successful, but the retrieved logical file name is truncated.
-1 The operation is successful, but the retrieved Guardian file name is truncated.
0 The operation is successful.
1 A required parameter is missing.
2 A parameter value is invalid. For example:
call_type is neither o nor 1.
fcb_address is neither 0 nor the address of an FCB.
tdm_file_name_size or file_name_size is less than 0.
3 The Guardian file name is invalid.
4 The run-time environment is invalid (not TNS CRE or COBOL/FORTRAN run-time
environment) or has been corrupted.
5 call_type is 1 and the FCB is open.
6 call_type is 1 and a valid backup process exists.