CRE Programmer's Guide
CRE Service Functions
Common Run-Time Environment (CRE) Programmer’s Guide—528146-004
6-42
CRE_Terminator_
If you do not specify reply^depth when you call CRE_Receive_Open_Close_ or 
you specify a depth of one, you must specify zero for the 
message_number 
parameter.
Return Value 
CRE_Receive_Write_ returns one of the following:
•
0 if the input operation is successful
•
A positive number, which is a file system error number
•
A negative number, which is the negation of a CRE error number from the following 
table:
CRE_Terminator_
The CRE_Terminator_ procedure ensures that all standard files in your program are 
closed. In the TNS CRE environment, it also calls a language-specific function from the 
run-time library of each language represented by a module in your program. 
Language-specific functions are not called in the native CRE environment. 
completion_status
describes your program’s status when it ended execution. Valid values for 
completion_status are:
CRE^Completion^normal
CRE^Completion^warning
CRE^Completion^error
CRE^Completion^trap
CRE^Completion^fatal
Error Code Cause
55 Missing or invalid parameter
64 File not open
PROC CRE_Terminator_( completion_status, options, 
 completion_code, termination_info,
 spi_ssid, text:text_length )
 EXTENSIBLE;
 INT completion_status; ! in, required
 INT options; ! in, optional
 INT completion_code; ! in, optional
 INT termination_info; ! in, optional
 INT .EXT spi_ssid; ! in, optional
 STRING .EXT text; ! in, optional
 INT text_length; ! in, optional TNS, native










