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
  • 1.  VAG to COBOL EGL migration date issue

    Posted Wed November 21, 2018 02:56 PM

    The developer is migrating from VisualAge to EGL and to COBOL using the migration utility. He has a mismatch between the current date format in

    Visual Age (YYYY-MM-DD) and the COBOL generated format vgVar.currentFormattedGregorianDate  DD/MM/YYYY.

    He suggests we change the EGL Runtime Option currentFormattedGregorianDate to match the VisualAge format. However I am reluctant to change this as

    other EGL COBOL programs may already be using the current EGL Runtime format.

     

    The developer has 300 programs to convert, so it may not be practical to modify every program to the new format.

    Is there any other way he can achieve the change in the date format, through parameters in  the Migration utility or otherwise.

    9RRW_Ron_Mascarenhas


  • 2.  Re: VAG to COBOL EGL migration date issue

    Posted Thu November 22, 2018 04:25 PM

    What date format are you asking?

    To get date from EZEDTE and EZEDTEL.

     

    Hsieh


  • 3.  Re: VAG to COBOL EGL migration date issue

    Posted Thu November 22, 2018 05:02 PM

    Its is the EZEDTELC which is VGVar.currentFormattedGregorianDate in EGL

    9RRW_Ron_Mascarenhas


  • 4.  Re: VAG to COBOL EGL migration date issue

    Posted Thu November 22, 2018 05:16 PM

    Ok ! There are two way.

    1. From Rational Cobol Runtime, you need setup Date Format. I don't remember which panel page in Rational Cobol Runtime installation guide. but it's very simple.

    2. From EGL Build option has a parameter dateFormat.

     

    Regards

    Haieh

    Hsieh


  • 5.  Re: VAG to COBOL EGL migration date issue

    Posted Fri November 23, 2018 02:46 AM

    1. The COBOL Runtime setting may not be possible as other programs may be using the existing date format.

    2. Does the dateFormat Build option apply to COBOL as well or is this only for Java

    9RRW_Ron_Mascarenhas


  • 6.  Re: VAG to COBOL EGL migration date issue

    Posted Fri November 23, 2018 05:51 AM

    1. I do not know why you can not change the date format in Cobol Runtime. But you can setup Cobol Runtime for more than one target NLS and this way for each target NLS to have a different date format. example: have one date format for the target NLS ENU and another one for the target NLS EUR. And when generating COBOL you need to inform the target NLS in the EGL Build option that you want to run. Do not forget if you have a table part with ENU suffix you will have to change or duplicate the table part to suffix EUR.

    2. Date format support any system and it overlaps what is setup in Cobol Runtime.

     

    Regards,

    Hsieh

    Hsieh


  • 7.  Re: VAG to COBOL EGL migration date issue

    Posted Fri November 23, 2018 07:01 AM

    Thanks. I think I will go  with the multiple NLS in Cobol Runtime

    9RRW_Ron_Mascarenhas