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

Substring handling of Double Byte Characters

  • 1.  Substring handling of Double Byte Characters

    Posted Wed April 11, 2018 08:18 AM

    Hi, is there a utility/function in EGL to handle substring for double-byte characters?  For example, we have a field with char(20)  declaration that can contain single and double byte characters.  If we have first-name = name[1:10], the substring may not work if the double-byte character will be truncated before the shift out '0F' character.  Can you please help advise?  Thank you.

    Thea D


  • 2.  Re: Substring handling of Double Byte Characters

    Posted Thu April 12, 2018 11:41 AM

    Hi Thea,

     

    I believe not.  You can cast single characters to double byte and do the substring it.

     

    Hsieh

    Hsieh