CRE Programmer's Guide
CRE Services
Common Run-Time Environment (CRE) Programmer’s Guide—528146-004
2-12
TNS CRE Initialization
•
Determines the name of your program’s standard log. (Standard log is another
name for what some languages call STDERR. Messages written to STDERR
appear in standard log. Messages in standard log might be errors, warnings, or
informational.) If the CRE cannot determine the name, it terminates your program.
Standard Files on page 2-2 describes how the CRE determines the name of the file
to open for standard log.
•
Establishes a trap handler.
•
Invokes an initialization function for each language in your program except TAL.
PRINTER-
CONTROL
filename
*.filename
That the operating system return control to
your program if the printer specified by the
value of the PRINTER-CONTROL PARAM
is either not ready or out of paper. The
semantics for PARAM value are:
•
filename matches a file in any
program but cannot appear in more
than one program.
•
*.filename matches a file in any
program and can match files in more
than one program
•
progname.filename matches a
filename only in the program
progname.
SAVE-
ENVIRONMENT
ON
OFF
See next
column
Saves environment information, derived
from PARAMs and startup message, into
the environ array. By default, SAVE-
ENVIRONMENT is ON if the main routine is
written in C, and OFF if the main routine is
not written in C. Use the SAVE-
ENVIRONMENT PARAM to override these
defaults. ASSIGNs, PARAMs, and startup
messages are available in the Guardian
environment but are not available in the
OSS environment, regardless of the value
of the SAVE-ENVIRONMENT PARAM.
SWITCH-1
. . .
SWITCH-15
ON
OFF
OFF The value of the corresponding switch.
Switches can be tested only by TNS
COBOL and FORTRAN programs. For
details, see the COBOL Manual for TNS
and TNS/R Programs or the FORTRAN
Reference Manual.
Table 2-3. PARAMs Processed by the CRE (page 2 of 2)
PARAM Name
PARAM
Values
Default
Value Specifies: