z/OS Language Environment Customization
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


RTEREUS (COBOL only)

z/OS Language Environment Customization
SA38-0685-00

Derivation: Run Time Environment REUSe

Start of change RTEREUS implicitly initializes the runtime environment to be reusable when the main program for the thread is a COBOL program. This option is valid only when specified at the system level, region level, in a CEEUOPT, or in the CEEBXITA assembler user exit. End of change

Non-CICS default
RTEREUS=((OFF),OVR)
CICS® default
RTEREUS is ignored under CICS.
Read syntax diagramSkip visual syntax diagram
Syntax

                     .-OFF-.        .-OVR----.      
>>-RTEREUS--=--(--(--+-ON--+--)--,--+-NONOVR-+--)--------------><

OFF
Does not initialize the runtime environment to be reusable when the first COBOL program is invoked.
ON
Initializes the runtime environment to be reusable when the first COBOL program is invoked.
OVR
Specifies that the option can be overridden.
NONOVR
Specifies that the option cannot be overridden.

Usage notes

  • Start of change Avoid using RTEREUS(ON) as a system-level or region-level default. If you do use RTEREUS, use it for specific applications only. End of change
  • Restrictions:
    • RTEREUS(ON) cannot be used with XPLINK(ON).
    • RTEREUS(ON) cannot be used in a z/OS UNIX process.
    • Enterprise COBOL programs compiled with the THREAD compiler option do not run with RTEREUS(ON).
  • Under Language Environment®, RTEREUS(ON) is only supported in a single enclave environment unless you modify the behavior using the IGZERREO CSECT. With the IBM-supplied default setting for COBOL's reusable environment, applications that attempt to create nested enclaves terminate with error message IGZ0168S.

    Nested enclaves can be created by applications that use SVC LINK or CMSCALL to invoke application programs. One example is when an SVC LINK is used to invoke an application program under ISPF that is using ISPF services (such as CALL 'ISPLINK' and ISPF SELECT).

  • If a Language Environment reusable environment is established (using RTEREUS), attempts to run a C or PL/I main program under Language Environment will fail. For example, when running on ISPF with RTEREUS(ON):
    • The first program invoked by ISPF is a COBOL program. A Language Environment reusable environment is established.
    • At some other point, ISPF invokes a PL/I or C program. The initialization of the PL/I or C program will fail.
  • If a large number of COBOL programs are run (using RTEREUS) under the same MVS™ task, you can encounter out-of-region abends. This is because all storage acquired by Language Environment to run COBOL programs is kept in storage until the MVS task ends or the Language Environment environment is terminated.
  • Language Environment storage and runtime options reports are not produced by Language Environment (using RTEREUS) unless a STOP RUN is issued to end the enclave.
  • The IGZERREO CSECT affects the handling of program checks in the non-Language Environment-enabled driver that repeatedly invokes COBOL programs. It also affects the behavior of running COBOL programs in a nested enclave when a reusable environment is active.
IMS™ considerations
RTEREUS is not recommended for use under IMS.

Performance considerations

You must change STOP RUN statements to GOBACK statements in order to gain the benefits of RTEREUS. STOP RUN terminates the reusable environment. If you specify RTEREUS and use STOP RUN, Language Environment recreates the reusable environment on the next invocation of COBOL. Doing this repeatedly degrades performance, because a reusable environment takes longer to create than does a normal environment.

The IGZERREO CSECT affects the performance of running with RTEREUS.

Language Environment also offers preinitialization support in addition to RTEREUS.

For more information

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014