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
 

 

More READQ TS on TSQ which is enqued by other task

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
View previous topic :: :: View next topic  
Author Message
Rogerio Ferreira Coelho

New User


Joined: 13 Jun 2007
Posts: 11
Location: Sao Paulo - Brazil

PostPosted: Sat May 01, 2010 12:43 am    Post subject: Re: READQ TS on TSQ which is enqued by other task
Reply with quote

In READQ TS on TSQ which is enqued by other task, aniket007 wrote:
I have a following scenario

Task 1: Read and Writes TSQ with ENQ option
Task 2: Only reads TSQ without ENQ option.

I am writing program for task one which will check if TSQ is present if present then it will re-write the TSQ data if not write the data.

Task 2 program will just read the TSQ data. I don’t want to give exclusive control to task 2 as many other similar high priority task might need to use the TSQ.

My question is if task 1 is holding the TSQ (by ENQ) for update purpose can task 2 still be able to access it. If not what condition will arise. Will it fail with any specific condition (RESP code) or will it wait till task 1 releases the control?

Any help would be highly appreciated.

I have a more complex problem:

I have 8 CICS that share a TS MAIN in Couple Facility.

Four of these CICS can write an entry in TS giving an unic TSQNAME using APPLID and TASKN.

The other four CICS use INQUIRE TS to get TSQNAME, and read them, and process, and delete.

I think that ENQ/DEQ work only in the same CICS region.

How can I prevent that two or more CICS read and process the same TSQNAME?

Can I use WAIT EXTERNAL ECBLIST in my application program?

I need to write an EXIT to POST an EVENT?

Whou can I do it?

Whou to install the EXIT?

The exit can be write in COBOL?
Back to top
View user's profile Send private message

Earl Haigh

Active User


Joined: 25 Jul 2006
Posts: 475

PostPosted: Sat May 01, 2010 8:06 pm    Post subject:
Reply with quote

Quote:
How can I prevent that two or more CICS read and process the same TSQNAME?


Create a common program that all other programs can link to
for TSQ services. put the ENQ/DEQ logic in the common program.
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 READQ TS returning inconsistent addre... moezbud CICS 14 Wed May 04, 2016 1:09 am
No new posts is there a way to renumber the id in ... boyti ko TSO/ISPF 5 Wed Oct 28, 2015 7:56 am
No new posts Task management through REXX kenshin CLIST & REXX 5 Wed Sep 30, 2015 10:41 pm
No new posts Using ENQ command with Maxlifetime(Ta... seahawk789 CICS 5 Wed Jul 29, 2015 6:58 am
No new posts Can Started Task be assigned message ... mjadwani2785 JCL & VSAM 3 Tue Nov 26, 2013 2:10 pm


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