EGL Development User Group

Expand all | Collapse all

Calling EGL/cobol from zconnect

  • 1.  Calling EGL/cobol from zconnect

    Posted Thu May 12, 2022 09:09 AM
    hello

    We have recenlty purchased IBM zos connect to bring APIs on our mainframe.
    It works fine but now, we'd like to call our existing EGL/Cobol CICS programs;
    and it always failed  on EXEC CICS ASSIGN TERMCODE  with INVREQ

    Has anyone ever tried zconnect to call EGL ?

    ------------------------------
    Jean-François LEYRIT
    ------------------------------


  • 2.  RE: Calling EGL/cobol from zconnect

    Posted Thu May 12, 2022 09:41 PM
    Hi Jean,

    Do you want to call Egl/Cobol from native Cobol Cics or another Egl/Cobol ?
    From Native Cobol you must use EXEC CICS XCTL ... remember when generated Cobol the default transfer commarea is POINTER and nota DATA.

    ------------------------------
    Hsieh YUAN
    ------------------------------



  • 3.  RE: Calling EGL/cobol from zconnect

    Posted Fri May 13, 2022 02:15 AM
    Hi Hsieh 

    in fact, we need to call EGL/cobol  as a rest API , using IBM zos connect.


    ------------------------------
    Jean-François LEYRIT
    ------------------------------



  • 4.  RE: Calling EGL/cobol from zconnect

    Posted Mon May 16, 2022 02:38 PM
      |   view attached
    Hi Jean,
    We have done a POC recently to connect EGL Generated COBOL program from Z/OS Connect. 
    Currently we are able to connect with EGL Generated COBOL program through COMMAREA as the interface from ZOS Connect.
    We have prepared a document on it and attaching for your reference. 
    Please go through the document and let us know for any further queries.

    Thanks & Regards,
    Venkata Suresh.

    ------------------------------
    VenkataSuresh Kothuri
    ------------------------------



  • 5.  RE: Calling EGL/cobol from zconnect

    Posted Tue May 17, 2022 09:21 AM
    Thank-you Venkata.

    It is exaclty what i want to do ! 

    We already use a mirror transaction with TWA 1064 (and not 1024 !) to call a EGL  sub-program.

    i will try with   TWA 1024 and let you know.


    ------------------------------
    Jean-François LEYRIT
    ------------------------------



  • 6.  RE: Calling EGL/cobol from zconnect

    InnerCircle
    Posted Wed May 18, 2022 11:15 AM
    Hello Jean-François,
    RBD needs a TWA of 1024. If you have more than this, that is not going to cause  a problem for RBD.

    ------------------------------
    Dev Banerjee
    RBD Development
    ------------------------------



  • 7.  RE: Calling EGL/cobol from zconnect

    Posted Fri May 20, 2022 11:42 AM
    Hello

    So i have changed TWA with 1024 , on the mirror transaction, but still get the same error : INVREQ 





    Then the program do an abend ELAE.

    ------------------------------
    Jean-François LEYRIT
    ------------------------------



  • 8.  RE: Calling EGL/cobol from zconnect

    Posted Mon May 23, 2022 02:16 AM
    Hi Jean-Francois,

    We are running all our CICS/EGL transactions under TWASIZE 2048. For us 1024 did not work either. 

    Regards 

    Peter

    ------------------------------
    Peter
    ------------------------------



  • 9.  RE: Calling EGL/cobol from zconnect

    Posted Fri May 27, 2022 09:59 AM
    Hi Jean,

    To understand the error better, we might need to see your code. Without that we wont be able to narrow down the issue. Let us know the feasible time and mode to connect and discuss on the same.
    However, please find below a link which might help to identify the issue.
    https://www.ibm.com/docs/en/cics-ts/5.1?topic=edf-using-menu-functions

    Regards,
    Suraj A
    RBD Developer

    ------------------------------
    Suraj Agarwal
    ------------------------------



  • 10.  RE: Calling EGL/cobol from zconnect

    Posted Fri May 27, 2022 12:04 PM
    Just a thought.   Is the program you are trying to invoke a basicProgram (no UI) or a TextUIProgram (has a form group).  The reason I ask is I am pretty sure we issue the ASSIGN TERMCODE when the program is a TextUIProgram to see what kind of terminal the program is running on.  I don't think that is done with a basicProgram (i.e. called program).   I would think the invoked program needs to be a basicProgram.

    ------------------------------
    Mark Evans
    ------------------------------



  • 11.  RE: Calling EGL/cobol from zconnect