MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to determine if a transaction is already running

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> CICS and Middleware
View previous topic :: View next topic  
Author Message
vihv
Beginner


Joined: 16 Apr 2007
Posts: 11
Topics: 4

PostPosted: Thu May 17, 2007 4:34 pm    Post subject: How to determine if a transaction is already running Reply with quote

Hi there, what's the cics command to check if a transaction is already running.....(writing a cobol program)

thans
Back to top
View user's profile Send private message
CICS Guy
Intermediate


Joined: 30 Apr 2007
Posts: 292
Topics: 3

PostPosted: Thu May 17, 2007 6:24 pm    Post subject: Reply with quote

CEMT I TAS?
What are you trying to determine?
Back to top
View user's profile Send private message
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Thu May 17, 2007 6:56 pm    Post subject: Reply with quote

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
View user's profile Send private message
CICS Guy
Intermediate


Joined: 30 Apr 2007
Posts: 292
Topics: 3

PostPosted: Thu May 17, 2007 7:18 pm    Post subject: Reply with quote

SPI for use count on the program?
Back to top
View user's profile Send private message
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Thu May 17, 2007 7:21 pm    Post subject: Reply with quote

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
View user's profile Send private message
vihv
Beginner


Joined: 16 Apr 2007
Posts: 11
Topics: 4

PostPosted: Fri May 18, 2007 11:20 am    Post subject: Reply with quote

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
View user's profile Send private message
CICS Guy
Intermediate


Joined: 30 Apr 2007
Posts: 292
Topics: 3

PostPosted: Fri May 18, 2007 11:40 am    Post subject: Reply with quote

Yes, that would do it.....
Back to top
View user's profile Send private message
wiltonp
Beginner


Joined: 15 May 2007
Posts: 1
Topics: 0

PostPosted: Tue May 22, 2007 9:09 am    Post subject: Reply with quote

Wont that just tell you that its defined - not that its actually running? I think
what you need is INQUIRE TASK.
Back to top
View user's profile Send private message
vihv
Beginner


Joined: 16 Apr 2007
Posts: 11
Topics: 4

PostPosted: Tue May 22, 2007 10:56 am    Post subject: Reply with quote

well I saw an example where we use the inquire tran for determining if the transaction is running. since the task id is randomly generated by cics every time the tran is started, how do you pass it as a param to the inquire command?

take a look a this:
http://publib.boulder.ibm.com/infocenter/cicsts/v2r3/index.jsp?topic=/com.ibm.cics.ts23.doc/eyua6/eyua6a0017.htm

but I can be wrong. anyway if you find something different let me know...
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> CICS and Middleware All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group