Topic
4 replies Latest Post - ‏2013-05-03T08:44:19Z by Jeroen.ASIST
AlfonsoMezoL.
AlfonsoMezoL.
2 Posts
ACCEPTED ANSWER

Pinned topic Modernize RPG

‏2013-05-02T17:25:43Z |

Hi everybody,

I will like to know if EGL can be used by experienced ILE RPG programmers, to develope modern applications - Client/Server and Web.

Aditionally, if EGL can generate RPG code, and how ease or difficult will it be for RPG programmers to learn EGL.

In resume, is EGL de evolution of VisalAge RPG?

Thanks in advanced !

  • clogs
    clogs
    186 Posts
    ACCEPTED ANSWER

    Re: Modernize RPG

    ‏2013-05-02T18:20:40Z  in response to AlfonsoMezoL.

    Hello Alfonso,

    Welcome to the forum. To answer your questions:

    • Our company has a couple of RPG programmers who can now also code in EGL. The learning curve is low, EGL is easy to pick up.
    • EGL cannot generate RPG code. It can generate Java, JavaScript and Cobol. We only use it to generate Java (backend services) and JavaScript (RichUI frontend).

    Hope this helps a bit.

    Regards,

    Willem

    • AlfonsoMezoL.
      AlfonsoMezoL.
      2 Posts
      ACCEPTED ANSWER

      Re: Modernize RPG

      ‏2013-05-02T21:37:20Z  in response to clogs

      Thanks Willem,

      So, in your experience:

      • Can we use EGL to create Java code (for the frontend), and interact with RPG programs and/or SQL stored procedures ?

      And if perfhaps you know how to develop client/server applications now that VA RPG has been discontinued.

      Regards.

      • clogs
        clogs
        186 Posts
        ACCEPTED ANSWER

        Re: Modernize RPG

        ‏2013-05-03T05:36:53Z  in response to AlfonsoMezoL.

        Hello Alfonso,

        To answer your first question: you cannot generate the frontend to Java, this is purely for backend services (or for things like batch programs). The frontend can either be JSF based (version 1.1) or RichUI (which generates JavaScript). In all cases you write your code using the EGL language.

        Not sure if you can interact with RPG/SQL stored procedures from your client, my guess would be that you cannot. But, you can interact with RPG/stored procedures from your backend services (in fact, that's what we do at our company).

        So basically, the scenario is as follows:

        • You write a frontend client (using either JSF or RUI basic handlers (coded in EGL))
        • You communicate with backend services from the frontend (which is done in an asynchronous manner)
        • The backend services (generated to Java (coded in EGL)), deployed on something like Tomcat or Websphere, access the data. Accessing the data may mean calling RPG (in case you want to hold on to your legacy code), stored procedures or using SQL.
        • The service returns the data to the frontend 

        We are only accessing RPG while we are in transition from our old (RPG) to our new (EGL) system. When we have replaced our legacy code by EGL, our AS400 system will mainly serve as a database server.

        Regards,

        Willem 

      • Jeroen.ASIST
        Jeroen.ASIST
        11 Posts
        ACCEPTED ANSWER

        Re: Modernize RPG

        ‏2013-05-03T08:44:19Z  in response to AlfonsoMezoL.

        Hi Alfonso,

        There are two ways to reuse your existing RPG programs:

        - call the RPG programs from EGL (like Willem said)

        - transform the RPG programs to services, so you can directly use these services in your eg rui-frontend.  

         

        I recently implemented this last solution for a customer.  Don't hesitate to contact me if you have questions about this.

         

         

        Regards,

        Jeroen

        ASIST