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

More READQ TS on TSQ which is enqued by other task


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CICS

 


Similar Topics
Topic Forum Replies
No new posts Started task using a generation dataset JCL & VSAM 7
No new posts Batch call online program, EXCI task ... CICS 3
No new posts Run a simple JOB as Started Task All Other Mainframe Topics 4
No new posts How to specify TCBLIMIT for DB2CONN i... CICS 3
No new posts Need to allocate SDSNLOAD for DSNREXX... DB2 16
Search our Forums:

Back to Top