EGL Development User Group

EGL Development User Group

EGL Development User Group

The EGL Development User Group is dedicated to sharing news, knowledge, and insights regarding the EGL language and Business Developer product. Consisting of IBMers, HCL, and users, this community collaborates to advance the EGL ecosystem.

 View Only

RBD v/s VAG: Run Time File Attritube checks

By Jiyong Huang posted Wed April 01, 2020 09:20 PM

  

Hi Folks

Recently we faced one found peculiar issue in EGL code related to FILE handling

Back ground about Issue:  We have cobol batch module named as "CFLLVAP" that uses Variable Byte(VB) File (CFLLT1F) of Logical Record Length 1003 (LREC) defined in Mainframe.

In RBD source File (CFLLT1F) is defined as

Record CFLZZR_LT1F type serialRecord  {
  fileName = "CFLLT1F", lengthItem = IRECLEN
  }
  5 LT1F_DATA char(
999) ;
    10 CTY CTY ;
    10 SRC SRC ;
    10 VOUCHER_OWNER VOUCHER_OWNER ;
    10 LT1FVAR LT1FVAR ;
end // end CFLZZR_LT1F

EGL code behaviour: CFLLVAP will hit Error "IGZ0201W" if File CFLLT1F is created with attribute other than LREC 1003 in mainframe.

VAG code behaviour:CFLLVAP will NOT hit Error "IGZ0201W" if File CFLLT1F is created with attribute other than LREC 1003 in mainframe. Implying VB Files with LREC 999,900,etc is working fine.

Note: I understand that with LREC 999 defined in EGL source file, it will expect 1003 (999+4 control byte) LREC file to be present in Mainframe.

What we obeserve from these behavior of VAG v/s EGL is that EGL code does  have strict File Parameter Checking whearas VAG doesnot. We want to know whether this actually been a Add-on feature to VAG in EGL or something else?

Thanks In Advance

 

 

0 comments
0 views

Permalink