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

    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

    Posted Mon May 30, 2022 05:35 AM
    Hi Mark

    it is a basicprogram.




    we are still with RBD version 8.5.
    may be i need to upgrade to latest version.

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



  • 12.  RE: Calling EGL/cobol from zconnect

    Posted Mon May 30, 2022 09:10 AM
    Ok..  like I said...just a thought...   Will let the experts provide input.

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



  • 13.  RE: Calling EGL/cobol from zconnect

    Posted Tue May 31, 2022 09:27 AM
    Hi Jean,
    Can you type below command in your CICS region after you got the ELAE abend:
    • CEBR
    GET ELAD
    Please share the error report from GET ELAD screen to further analyze the issue.

    Also please open a ticket to in depth analyze the issue.

    Thanks & Regards,
    Venkata Suresh.K


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



  • 14.  RE: Calling EGL/cobol from zconnect

    Posted Wed June 01, 2022 02:04 AM
    Hi Venkata

    here is what i have :

    CEN2PL0C0056083CELAD06/01/2207:53:03ENUELA00032P Called program KPIWXA received a parameter list that is not valid 
    CEN2PL0C0056306CELAD06/01/2207:56:39ENUELA00105I Error occurred at terminal /ABP, date 06/01/22, time 07:56:39, user 
    CEN2PL0C0056306CELAD06/01/2207:56:39ENUELA00105C FB00170


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



  • 15.  RE: Calling EGL/cobol from zconnect

    Posted Wed June 01, 2022 08:15 AM
    Hi Jean,

    What's genoption did you used to generated EGL called programa ?
    by default is COMMPOINTER.
    If you caller program is calling EGL program passing parameter as COMMDATA then you need change genoption to COMMDATA and regenerate the EGL program again.

    Hsieh

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



  • 16.  RE: Calling EGL/cobol from zconnect

    Posted Thu June 02, 2022 09:39 AM
    Hi Hsieh

    it works with COMMDATA


    but to avoid the regeneation of the  EGL program , may be i can use an intermediate program receiving COMMDATA and calling with COMMPTR.



    thank-you all for the help.

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



  • 17.  RE: Calling EGL/cobol from zconnect

    Posted Thu June 02, 2022 11:21 AM
    Hi Jean,

    Yes !  You can do it too.  Construct a gateway program. I made it in past.

    Hsieh

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