How to Suppress CTree Messages.

Document ID : KB000054732
Last Modified Date : 14/02/2018
Show Technical Document Details

Description:

Realia calls C-TREE (3rd party indexed file system) when we want to rebuild an isam file. These messages come from C-TREE, when a newer version of C-TREE is being used with release 3.3 of CA-Realia.

Solution:

There are two utilities documented in the CA-Realia II Workbench COBOL Reference Guide that will suppress the messages.

On page 10-21,
REALIA_SET_REDIRECT-Turn On SYSIN/SYSOUT/SYSERR
Redirection
01 WIN32RESULT PIC S9(9) BINARY.
.
.
CALL 'REALIA_SET_INDIRECT' GIVING WIN32RESULT.

This routine can be called to turn on implicit redirection of ACCEPT to the file specified by the SYSIN environmental; and DISPLAY to the file specified by the SYSOUT environmental. By default, ACCEPT and DISPLAY use the console. Notice that SYSERR is also redirected so various errors and other displays using SYSERR can be redirected as well.

Now you can use the REBUILD function to rebuild your isam files.
*
On page 10-19,
REALIA_RESET_REDIRECT-Turn Off SYSIN/SYSOUT/SYSERR
Redirection
01 WIN32RESULT PIC S9(9) BINARY.
.
.
CALL 'REALIA_RESET_INDIRECT' GIVING WIN32RESULT.

This routine can be called to turn off the implicit redirection of ACCEPT to the file specified by the SYSIN environmental, and DISPLAY to the file specified by the SYSOUT environmental, and errors to the SYSERR environmental.