DYL-326E error in conjunction with TABLE ENTRY parameter
search cancel

DYL-326E error in conjunction with TABLE ENTRY parameter

book

Article ID: 24925

calendar_today

Updated On:

Products

Vision:Results

Issue/Introduction

DYL-326E error on ENTRY parameter on the TABLE statement.

Resolution

The ENTRY parameter on the TABLE statement is automatically defined.

Once the parameter is specified, the programmer does not need to define it anywhere else.

Customer coded this TABLE statement,

TABLE PP    STATUS PPSTAT   F  21   ENTRY PPENT   FROM TABLPROG 

DYL-326E error followed assignments:

     PPENT = 1    ERROR      DYL-326E    DATANAME OF PPENT NOT DEFINED 

The TABLE statement was actually defined like this:

TABLE PP    STATUS PPSTAT   F  21   ENTRY PPENT   FROM TABLPROG                ENTRY PP_TBL_ENT    

When there are multiple ENTRY parameters, only the last is used and all others are ignored.

In this case, the active ENTRY DATANAME is PP_TBL_ENT and PPENT is undefined.

Removing ENTRY PP_TBL_ENT from the TABLE definition resolved the problem.

Modifying the product to issue a syntax error when multiple ENTRY parameters are encountered at this time could make existing production applications fail, this will not be amended before a future release when it can be fully documented.

Please note that only the last ENTRY DATANAME on a TABLE statement is recognized.