View previous topic :: View next topic |
Author |
Message |
vihv Beginner
Joined: 16 Apr 2007 Posts: 11 Topics: 4
|
Posted: Thu May 17, 2007 4:34 pm Post subject: How to determine if a transaction is already running |
|
|
Hi there, what's the cics command to check if a transaction is already running.....(writing a cobol program)
thans |
|
Back to top |
|
|
CICS Guy Intermediate
Joined: 30 Apr 2007 Posts: 292 Topics: 3
|
Posted: Thu May 17, 2007 6:24 pm Post subject: |
|
|
CEMT I TAS?
What are you trying to determine? |
|
Back to top |
|
|
dbzTHEdinosauer Supermod
Joined: 20 Oct 2006 Posts: 1411 Topics: 26 Location: germany
|
Posted: Thu May 17, 2007 6:56 pm Post subject: |
|
|
You are attempting in a COBOL CICS program to determine if an instance of the same module is already running in another task. e.g. you have a TD QUEUE with a trigger level and want to insure no more than one task is draining the QUE?
I will try to find the eib field that you need. I seem to remember (1987) that it required an additional command.
might take me a day or so; hopefully someone that knows will answer.. _________________ Dick Brenholtz
American living in Varel, Germany |
|
Back to top |
|
|
CICS Guy Intermediate
Joined: 30 Apr 2007 Posts: 292 Topics: 3
|
Posted: Thu May 17, 2007 7:18 pm Post subject: |
|
|
SPI for use count on the program? |
|
Back to top |
|
|
dbzTHEdinosauer Supermod
Joined: 20 Oct 2006 Posts: 1411 Topics: 26 Location: germany
|
Posted: Thu May 17, 2007 7:21 pm Post subject: |
|
|
that's what we used to do. thx CICS_Guy.
vihv,
if that does not answer your question, please provide a little more detail. _________________ Dick Brenholtz
American living in Varel, Germany |
|
Back to top |
|
|
vihv Beginner
Joined: 16 Apr 2007 Posts: 11 Topics: 4
|
Posted: Fri May 18, 2007 11:20 am Post subject: |
|
|
Guys, I'm sorry I did not state right the question.
On a cobol program I need to check if a transactions(different to the transaction on my program) is already running, if not, I need to start it.
I think I found the answer:
EXEC CICS INQUIRE
TRANSACTION (WS-E8BD-TRAN-ID)
REMOTESYSTEM (WS-REMOTE-SYSID)
RESP (WS-RESP)
END-EXEC.
THNKS 2 U ALL |
|
Back to top |
|
|
CICS Guy Intermediate
Joined: 30 Apr 2007 Posts: 292 Topics: 3
|
Posted: Fri May 18, 2007 11:40 am Post subject: |
|
|
Yes, that would do it..... |
|
Back to top |
|
|
wiltonp Beginner
Joined: 15 May 2007 Posts: 1 Topics: 0
|
Posted: Tue May 22, 2007 9:09 am Post subject: |
|
|
Wont that just tell you that its defined - not that its actually running? I think
what you need is INQUIRE TASK. |
|
Back to top |
|
|
vihv Beginner
Joined: 16 Apr 2007 Posts: 11 Topics: 4
|
|
Back to top |
|
|
|
|