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

finding the taskid for a started transaction


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

New User


Joined: 06 Aug 2014
Posts: 2
Location: chennai

PostPosted: Thu Aug 07, 2014 9:06 pm
Reply with quote

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
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Thu Aug 07, 2014 9:20 pm
Reply with quote

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

New User


Joined: 06 Aug 2014
Posts: 2
Location: chennai

PostPosted: Sat Aug 09, 2014 9:19 am
Reply with quote

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
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 VB to FB - Finding LRECL SYNCSORT 4
No new posts How to identify the transaction categ... IMS DB/DC 3
No new posts Started task using a generation dataset JCL & VSAM 7
No new posts Finding Assembler programs PL/I & Assembler 5
No new posts Run a simple JOB as Started Task All Other Mainframe Topics 4
Search our Forums:

Back to Top