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.  Accessing a data area from EGL

    Posted 01/26/17 01:52 PM

    I have an EGL JSF application I wrote using RBD 9.1.  I want to be able to access a data area on our IBM I using EGL.  I have done some Google searches and found a couple of functions.  One is  getDataArea() and the other is updateDataArea().  However I have not been able to find any real examples of how to add this to my application.  Has anyone does this and if so can you tell me how you did it?

    msoucy


  • 2.  Re: Accessing a data area from EGL

    Posted 02/06/17 05:44 AM

    Hi,

    What exactly do you mean with "real example"?

    Getting for example a dataarea's contents is as straightforward as this:

        function main()        sysdef SystemDefinition{    systemName = "YOURSYSTEMNAME",                                    userId = "YOURUSERID",                                     password = "YOURPASSWORD" };        myDA DataAreaDefinition{    libname = "YOURLIBRARYNAME",                                     areaname = "YOURDATAAREANAME",                                     areaType = iJavaLib.DATA_AREA_TYPE_CHAR,                                     systemDef = sysdef};        a string = iJavaLib.getDataArea(myDA);        SysLib.writeStdout(a);    end

     

    Is this what you mean?

    Regards,

    Guus

    gweis


  • 3.  Re: Accessing a data area from EGL

    Posted 02/07/17 09:23 AM

    Hi Guus,

    Thank you for your reply.  I was looking for an example of how to use the functions I had found.  What you provided is helpful.  I also found this post from way back where someone asked as similar question.

    https://www.ibm.com/developerworks/community/forums/html/topic?id=77777777-0000-0000-0000-000014504099&ps=25

    Thank you,

    Mike

    msoucy