IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Doing basically a CEMT I TRA from within a program?


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Reapr

New User


Joined: 09 Mar 2023
Posts: 2
Location: South Africa

PostPosted: Fri Mar 10, 2023 2:28 pm
Reply with quote

Hi,

I wrote a program like this 10 or so years ago, but haven't been coding in CICS since then, so I remembered I did it, but can't remember how.

The purpose:
Developers here have the problem that they had a transaction fail and it was disabled, but nobody was aware it was disabled until customers started complaining.

The solution (back in the day)
So I wrote a program that would cycle through a list of transactions to be monitored, if a transaction was disabled, it would raise the alarm.

It would run every 5 minutes and was autostarted as part of CICS startup.


My problem now:
I cannot for the life of me remember how I did it. It was something to do with asking CICS where it stores this transaction info - it would respond with an address and then you would assign the data at that address to a working storage area in your program.

You could then interrogate the data to find out if the transaction is disabled or not.

Anybody know what I'm on about?

Thanks
Back to top
View user's profile Send private message
dneufarth

Active User


Joined: 27 Apr 2005
Posts: 420
Location: Inside the SPEW (Southwest Ohio, USA)

PostPosted: Sat Mar 11, 2023 12:18 am
Reply with quote

Similar inquiry, albeit batch, ibmmainframes.com/about53113.html

CICS monitoring tools typically handle this. Contact CICS support team.
Back to top
View user's profile Send private message
Reapr

New User


Joined: 09 Mar 2023
Posts: 2
Location: South Africa

PostPosted: Sat Mar 11, 2023 9:47 am
Reply with quote

Thank you, unfortunately the CICS support team at current site is less than helpful.

I still can't find the way I did it at a different site, but I started aimlessly paging through the CICS Manuals and did stumble across this:

INQUIRE TRANSACTION
www.ibm.com/docs/en/cics-ts/5.4?topic=commands-inquire-transaction

Seems this has been added since I last coded.

It does return transaction status (ENABLED/DISABLED) and will suit my needs.

Thanks
Back to top
View user's profile Send private message
Skyy Simmons

New User


Joined: 15 Dec 2022
Posts: 1
Location: United States

PostPosted: Wed May 29, 2024 1:15 am
Reply with quote

What you can do is use IBM's attention routine utility DTRIATTN.

In your CICS startup JCL, you can add the following:

// EXEC DTRIATTN,PARM='MSG F2,DATA='CEMT INQ TRANS DIS'

This will, of course, display the desired results of the CEMT transaction in the attention routine.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10879
Location: italy

PostPosted: Wed May 29, 2024 1:36 am
Reply with quote

unfortunatelti the DTRIATTN thingy seems to be zVSE only , not zOS
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CICS

 


Similar Topics
Topic Forum Replies
No new posts Error to invoke MPP program through B... IMS DB/DC 3
No new posts Using API Gateway from CICS program CICS 0
No new posts DB2 Event passed to the Application P... DB2 1
No new posts How to pass the PARM value to my targ... COBOL Programming 8
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
Search our Forums:

Back to Top