CICS

CICS

CICS

The world's leading application server software for IBM Z

 View Only
  • 1.  START from CICS Web Service

    Posted Fri September 29, 2023 09:45 AM

    Hi

    Can one execute a CICS Start from w/in a CICS Web service?  I converted an existing CICS program to a web service but it's abending on an EXEC CICS START instruction presumably because of the TERMID(EIBTRMID) clause. I commented out this line and now while it doesn't abend, I don't know what it is doing, it doesn't seem to do anything!
    Evidently I lack fundamental knowledge about how START works.

    What should I be doing here?
    Thanks



    ------------------------------
    anand mahadevan
    ------------------------------


  • 2.  RE: START from CICS Web Service

    Posted Mon October 02, 2023 09:28 AM

    Anand,

    Yes one can execute an EXEC CICS START within a Web Service, however a START command that references the TERMID option means the program that will start requires a 3270 terminal to run.  In your case it is EIBTRMID which is the terminal that the original transaction is running on.  Since you no longer have a terminal the original START would fail.

    When you commented out the TERMID option you allowed to the START to occur, but you do not have the results of the start.  Well, if you go to the running CICS region and put a ? next to it you will see all the SYSOUTs for the region.

    The results for me are this:

    If you select MSGUSER with an (S) and scroll down to the bottom.  You should see that your started transaction probably abended.  I did a sampy with a transaction called PAY, here are the results I see.

    The bottom line is that even though you can comment something out and get the START to execute, it does not mean the application will continue to work.  I would look at the program that gets started to see why it needs to run on a terminal and remediate that before trying a START that was designated for a terminal without one.

    Hope that Helps!



    ------------------------------
    Ezriel Gross
    Rocket Software
    Waltham NJ
    17816842672
    ------------------------------