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.  Setup Debugging for CICS in RBD

    Posted Wed December 07, 2016 11:21 AM

    HI

     

    I'm trying to setup my RBD to debug CICS applicaation. I haven't found any detailed description about this. Can you please help me how to set it up properly and how to debug an application?

     

    Thank You!

    SzabóZoltán


  • 2.  Re: Setup Debugging for CICS in RBD

    Posted Thu December 08, 2016 07:19 PM

    Hi Zoltan,

    I didn't understand your question.

    The EGL Debug is runned in your desktop and not in CICS.

    Mybe your question is how to the EGL debug connect and remote access DB2, VSAM File or call COBOL (non-EGL) in CICS.

     

    Let's me know your doubt

     

    Regards,

    Hsieh

    Hsieh


  • 3.  Re: Setup Debugging for CICS in RBD

    Posted Fri December 09, 2016 03:13 AM

    Sorry, I'm new to EGL and mainframe.

    I'm coding in EGL and compiling it to COBOL and running on mainframe. So my question was how can I configure the debugger environment and the build descriptor to be able to debug it.
    Yes I meant how to "connect and remote access DB2, VSAM/SQ File or call COBOL (non-EGL) in CICS " and use the Debbuger to run step-by-step the EGL code. 

    I found some parts in the documentation of RDZ/RBD but I can't see the full setup/config.

    SzabóZoltán


  • 4.  Re: Setup Debugging for CICS in RBD

    Posted Fri December 09, 2016 06:36 AM

    Hi Zoltan,

    The RDB don't use RDz Debug tool.  RDz Debug tool is another IBM product part number.  There is a specific RDz forum for this.

    For RBD/EGL Debug and to remote access DB2 you need config database connection using JDBC, this link must be help you.

    http://www.ibm.com/support/knowledgecenter/SSMQ79_9.5.1/com.ibm.egl.pg.doc/topics/pegl_sql_db_connect_tsk.html

    and if you need remote access VSAM and call COBOL (non-EGL) into CICS

    http://www.ibm.com/support/knowledgecenter/SSMQ79_9.5.1/com.ibm.egl.pg.doc/topics/pegl_core_debug_overview_cpt.html

    ttp://www.ibm.com/support/knowledgecenter/SSMQ79_9.5.1/com.ibm.egl.pg.doc/topics/pegl_core_debug_vsam_setup_vsam_connector.html

    http://www.ibm.com/support/knowledgecenter/SSMQ79_9.5.1/com.ibm.egl.pg.doc/topics/pegl_core_debug_vsam_setup_cics.html

     

    I hope helped

    Regards,

    Hsieh

     

    Hsieh


  • 5.  Re: Setup Debugging for CICS in RBD

    Posted Fri December 16, 2016 04:03 AM

    Thanks we will try it out!

    SzabóZoltán


  • 6.  Re: Setup Debugging for CICS in RBD

    Posted Fri March 17, 2017 11:14 AM

    Hi,

     

    I'm coming back to this now. So, I have a CICS program which uses a sequential dataset. While I'm debugging I would like to access it locally (or remote is also an option)
    Here is a simple sample:
     

    package DEBUGT;// basic program//program DEBUGT type BasicProgram {  includeReferencedFunctions = yes, allowUnqualifiedItemReferences = yes,  throwNrfEofExceptions = yes, handleHardIOErrors = no, V60ExceptionCompatibility = yes,  I4GLItemsNullable = no, textLiteralDefaultIsString = no, localSQLScope = yes  }     DEBUGTR DEBUGTR;    // Use Declarations    //use usePartReference;          // Constant Declarations    const constantName string = "literalString";        // Variable Declarations    variableName string;        function main()        try            get next DEBUGTR ;        onException        end    endendpackage DEBUGT;// basic record//record DEBUGTR type serialRecord {  fileName = "CUFILE"  }      10 CUSTNO char(6) ; // custno (6)  10 NCUSNAM char(22) ; // customer abbrev name  10 TCUSADR1 char(34) ; // Address1 Name  10 TCUSADR2 char(34) ; // Address2  10 TCUSADR3 char(34) ; // Address3  10 TCUSADR4 char(34) ; // Address4  10 TCUSADR5 char(34) ; // Address5  10 TCUSADR6 char(34) ; // Address6  10 ITLCCTN char(14) ; // Telephone no  10 CCUSORG char(10) ; // Swiss special orgno  10 IMKTMBO char(3) ; // BO  10 CCUSMUC char(3) ; // MU  10 SALES_NO char(6) ; // Field sales rep no  10 SALES_SNAME char(30) ; // Sales rep Surname  10 SALES_FNAME char(30) ; // Sales rep firstname  10 LANG_CODE char(2) ; // Language code  10 CCUSISU char(3) ; // ISU Code    end

    I created a build descriptor and added a Resource Rssociation part:

    <ResourceAssociations name="DEBUGT">    <association fileName="CUFILE">        <win>             <seqws systemName="C:\SOFINTRF.CUSTIF"/>         </win>     </association></ResourceAssociations>

     

    Recommended properties are also set:

    resourceAssociations="DEBUGT" genProperties="GLOBAL"

     

    But when I debug it I got an error: EGL0751E The runtime property vgj.ra.fileName.fileType cannot be found for the CUFILE file

    Another issue is that I set the Default Debug Descriptor for this package, but now I can't find where to change it.

     

    Thanks for your advices!
     

     

     

     

     

    SzabóZoltán


  • 7.  Re: Setup Debugging for CICS in RBD

    Posted Mon March 20, 2017 10:11 PM

    Hi Zoltan,

    RDB/EGL Debug support remote access VSAM file on CICS.  Follow link

    https://www.ibm.com/support/knowledgecenter/SSMQ79_9.5.1/com.ibm.egl.pg.doc/topics/pegl_core_debug_vsam_setup_cics.html.

    You must installed CTG - CICS Transaction Gateway for windows, linux or same zOS to route to CICS zOS using TCP/IP.

    But you cannot access sequential dataset (GSAM). Just only VSAM  Indexed, Relative or Serial.

     

    Regards,

    Hsieh

    Hsieh


  • 8.  Re: Setup Debugging for CICS in RBD

    Posted Tue March 21, 2017 06:14 AM

    Am I understood well? You can use a local (on windows) file to replace a dataset on mainframe while you are debugging? I expected that Resource Association of SEQWS is used for this. (https://www.ibm.com/support/knowledgecenter/SSMQ79_9.5.0/com.ibm.egl.pg.doc/topics/pegl_cics_debug.html)

     

    The case is the following: there is a batch program which reads a sequential dataset and creates records from lines in DB2. How can I debug it?

     

    SzabóZoltán