Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

finding the taskid for a started transaction

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
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    Post subject: finding the taskid for a started transaction
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: 2502
Location: Atlanta, Georgia, USA

PostPosted: Thu Aug 07, 2014 9:20 pm    Post subject: Reply to: finding the taskid for a started transaction
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts CICS transaction slow response time vasanthz All Other Mainframe Topics 3 Thu Jan 19, 2017 1:31 am
No new posts Detailed Transaction History report f... Kyle Carroll CICS 5 Tue Oct 18, 2016 12:42 am
No new posts How to calculate an specific transact... lind sh CICS 2 Tue Sep 13, 2016 9:20 pm
No new posts Finding unreferenced datasets without... Alan Playford JCL & VSAM 5 Tue Jul 12, 2016 9:07 pm
No new posts Finding repetead surnames in differen... blackjack202 DFSORT/ICETOOL 7 Tue Jun 07, 2016 7:42 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us