CRE Programmer's Guide

CRE Services
Common Run-Time Environment (CRE) Programmer’s Guide528146-004
2-15
Initializing the TNS CRE From TAL
The following errors can occur during CRE initialization after the CRE has set up its
environment. Section 10, Run-Time Diagnostic Messages, describes these errors in
greater detail. The CRE writes a message to standard log and terminates your
program if any of these errors occur:
Initializing the TNS CRE From TAL
If your program’s main routine is written in TAL and you want to use the services of the
CRE, you must call the TAL_CRE_INITIALIZER_ library procedure when your program
begins execution. The TAL_CRE_INITIALIZER_ library procedure is located in the TAL
run-time library, TALLIB. The TAL Programmers Guide describes the
TAL_CRE_INITIALIZER_ library procedure.
Initializing the Native CRE From pTAL
A pTAL program cannot initialize the native CRE. If your program’s main routine is
written in pTAL and you want to use the services of the CRE, you must recode the
main routine as a normal routine. Then write a C main function that calls the pTAL
routine.
Program Termination
In the Guardian environment, the CRE performs the tasks described in this subsection.
In the OSS environment, the CRE does not:
Ensure that all CRE buffers are empty
Close standard files
In the TNS environment, if your program uses high-level language constructs to stop
its run, such as the COBOL STOP RUN statement, the FORTRAN STOP statement ,or
Message Number Cause
17 The CRE could not obtain space from the run-time heap (user data
segment).
21 The operating system returned an error when the CRE tried to read an
initialization message such as an ASSIGN message or the PARAM
message. The message text includes the error number returned by the
operating system.
23 The CRE was unable to convert a file name from internal to external
format.
24 Multiple ASSIGNs apply to the same file.
25 An ASSIGN of the form filename appears in more than one program.
26 A PARAM does not contain a valid value.
27 A PARAM of the form filename appears in more than one program.
55 A parameter to the CRE initializer is missing or invalid.