Change the destination of error log in the Easytrieve/Windows
search cancel

Change the destination of error log in the Easytrieve/Windows

book

Article ID: 216880

calendar_today

Updated On:

Products

Easytrieve Report Generator

Issue/Introduction

How to change the destination of error log in the Easytrieve/Windows? 

 

Environment

Release : 11.1

Component : CA Easytrieve Report Generator for Windows

Resolution

Modify the OPTIONS table module.
  1: Open ezoptbl.def file that in the bin folder of the Easytrieve system, for modification.

  2: Change the STDERR  TERMINAL to PRINTER2 (any name is ok except PRINTER and TERMINAL, which are reserved)


 Example;
 ******** A part of a ezoptbl.def. ****************
  STDERR    PRINTER2
  STDOUT    TERMINAL
 **************************************************

 3: Add PRINTER2 definition like this(Last one).


   Example;
 ********* A part of a ezoptbl.def.  **************
    XREF         N
  PRINTER  PRINTER   F   132   58   SYSPRINT
    PRINTER  TERMINAL   T   132   58   N N N
    PRINTER  PRINTER2   F   132   58   SYSERROR
 **************************************************


  Must match the name "PRINTER2" to the name defined in step 2. Any names can be specified as the last parameter, SYSERROR, which will be the sysname for the error log.

 4: Recreate OPTIONS table by issuing etopload command as follows.
 C:\Program Files(x86)\CA\Easytrieve\bin>etopload -b <ezoptbl.def

The command shows the new settings, confirm the settings have done as follows.


STDERR     PRINTER2
STDOUT     TERMINAL
(...  Omitted ....)
XREF          N
PRINTER   PRINTER    F   132   58   SYSPRINT
PRINTER   TERMINAL   T   132   58   N N N
PRINTER   PRINTER2   F   132   58   SYSERROR

 5: By this option set, he can assign an error-log-file to sysname of SYSERROR as follows.
 C:\Users\|xxxxxxxx\Desktop\EZT sample> set SYSERROR=error.log

 

Additional Information

In the Configuration Manager, only "TERMINAL" or "PRINTER" can be selected from the pulldown menu. So, if you want to change the destination of the STDERR  to something other than the "TERMINAL" and "PRINTER”, you need to change the OPTIONS table.