Incompatibility problem on the FILE-STATUS between R6.4 and R11.6.
search cancel

Incompatibility problem on the FILE-STATUS between R6.4 and R11.6.

book

Article ID: 123521

calendar_today

Updated On:

Products

Easytrieve Report Generator

Issue/Introduction

The EZTC0069E error appeared to FILE-STATUS statement in the existing program that IMS/DB is accessed in.
JOB INPUT(FILEA)
   WK-DATA = DATA-ALL
   DLI dli-segment WK-DATA 'ISRT' SSA(SSA1)
   IF FILE-STATUS = ' '
EZTC0069E >>> $ CANNOT COMPARE ALPHA TO NUMERIC

This is a Incompatibility problem on the FILE-STATUS between R6.4 and R11.6.

Environment

Easytrieve Report Generator release 11.6
    and
Easytrieve Plus Report Generator release 6.4

Cause

By the enhancement that a sequential file was added to the candidates for the FILE-STATUS in R11.0 or upper releases, the default of a FILE-STATUS is different based on the program code between R6.4 and R11.6.

Resolution

New solutions ST01576 and ST01577 were provided for this matter.

Those solutions add the SFFSDIS parameter in a option table for the handling of the FILE-STATUS parameter.
SFFSDIS=YES / NO (NO is default.)
Also it can be overridden with the PARM statement. (SFFSDIS YES / NO Ex. PARM SFFSDIS YES)

By the enhancement that a sequential file was added to the candidates for the FILE-STATUS in R11.0 or upper releases, the default of a FILE-STATUS is different based on the program code between R6.4 and R11.6. The SFFSDIS=YES disables the candidate of sequential file for the FILE-STATUS parameter and keeps compatibility with the R6.4 on the FILE-STATUS parameter.

Additional Information

For the FILE-STATUS, The R11.6 Programing Guide stated as follows.
*****
STATUS Parameter
The STATUS parameter can be optionally specified on the GET, POINT, READ, PUT, and WRITE statements for files on which SEQUENTIAL, INDEXED, or RELATIVE is specified on the FILE statement.
Specify STATUS whenever the possibility exists for an unsatisfactory completion of the input/output request. STATUS checks input/output processing to see if it was performed properly. You can code your program to perform an appropriate action based on that status.
STATUS causes the file's FILE-STATUS field to be set with the appropriate return code. See System-Defined File Fields (see page 108) to determine the meaning of the contents of FILE-STATUS. Normally, a zero or non-zero test is sufficient. FILE-STATUS is not defined if you do not specify the file type on the file definition.
If you do not code STATUS and the operating system returns a non-zero status, CA Easytrieve Report Generator issues an appropriate diagnostic message.
*****