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
Expand all | Collapse all

IDE do not validate index greater on substring

  • 1.  IDE do not validate index greater on substring

    Posted Sun November 22, 2015 03:57 PM

    RBD 9.1.1

    I have a sample substring statement:

    char(78) = "SUBSTRING STATEMENT";

    char(100) = a[1:79];

    No error is marked in IDE and just error when generating:

    IWN.VAL.5801.e 278/0 The index 79 cannot be greater than 78.

    IDE Works as designed ?

     

    Hsieh

    Hsieh


  • 2.  Re: IDE do not validate index greater on substring

    Posted Mon November 23, 2015 02:50 PM

    That particular check is not made until the preprocessor time. That seems to be where the code was added. 

    So, this is works as designed.

    Jeff.Douglas