View previous topic :: View next topic
|
Author |
Message |
deepa12
New User
Joined: 06 Aug 2014 Posts: 2 Location: chennai
|
|
|
|
i would like to know how to find the taskid for a started transaction using the EIBREQID thats returned after the start command is executed
2. A transaction is asynchronously started & is defined as follows:
RECOVERY
DTimout : 0030 No | 1-6800 (MMSS)
RESTart : Yes No | Yes
SPurge : Yes No | Yes
TPUrge : Yes No | Yes
DUmp : Yes Yes | No
TRACe : Yes Yes | No
COnfdata : No No | Yes
Otstimeout : No No | 0-240000 (HHMMSS)
When an online transaction with similar recovery definition as above is suspended & waits for another transaction enqueuing a resource, i get the following message
TRANSACTION GIPS, TASK NO 0002977, IS BEING RESTARTED AUTOMATICALLY, C-ABEND AFCY
But in case of STARTED transaction it does not seem to display this message also will it try to restart? I would like to know what could have happened |
|
Back to top |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
The TASKID is assigned by the Dispatch Domain as soon as the task is STARTED. So, even if you assign a REQID to a task, the TASKID (EIBTASKN) will not be provided.
For the most part, I've only used a REQID for deferred tasks (non-zero interval) which can be CANCELED.
If you use the QUEUE option of the START, as soon as the task is invoked, the program (which was just started) can move EIBTASKN to the TS QUEUE and then, you can issue a READQ and get this Task Number.
Actually, you might as well write the entire DFHEIBLK to the TS QUEUE.
HTH.... |
|
Back to top |
|
|
deepa12
New User
Joined: 06 Aug 2014 Posts: 2 Location: chennai
|
|
|
|
Thanks for this. Actually the problem in hand is as follows:
A pgm A STARTS program B a single streamed transaction many times within 1 or 2 seconds
I need to serialise this as follows:
A1(i.e the 1st invocation of A Starts B1(1st invocation of B) ; A1 can return control to the calling progam only after B1 completes.
So A1 should 1st indcate that B1 has started
and B1 should update the same that it has completed. A1 should keep checking this address/reource that indicates the completion of B1
& then only A1 should go back to its own linking program. Here i need some unique resource name for each occurrence of A1,A2, etc
Pgm A itself s linked so that will not be unique for multiple occurrences of A1,A2
I will not have the EIBREQID unless i do the START command. So what can be the queue name in the start command.Could you pls advise |
|
Back to top |
|
|
|