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

How to access Extra partition TDQ in Batch Program....


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

New User


Joined: 16 May 2007
Posts: 6
Location: Pune

PostPosted: Sat Apr 04, 2009 10:41 am
Reply with quote

Hello,

1…)

Any can help to know how to access Extra partition TDQ in Batch Program. Do the records of extra partition TDQ store in VSAM file implicitly or we do need to write explicitly into a VSAM file and then access in BATCH environment, If this is case then what will be then name of TDQ, is it same of VSAM file name or does mapping is there between file name TDQ name.

2…)

Is Extra partition TDQ are read destructive as like intra partition TDQ ?

3)

Can we write a record in TSQ randomly by specifying the ITEM-NO?……. (means write into the ITEM NO – 4 then ITEM NO – 8 then so on.)

Thanks
Mots
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Sat Apr 04, 2009 9:17 pm
Reply with quote

1. Extrapartition TDQ is a sequential file. It has absolutely nothing to do with VSAM. Access the file in batch by putting a DD statement with the dataset name just like any other sequential file. Be aware, though, that the records written in CICS are not immediately available to a batch program.

2. What does the manual say?

3. I don't see anything in the manual either way, although I suspect the answer is no (how would CICS know how long items 1, 2, and 3 were if they don't exist already).
Back to top
View user's profile Send private message
Earl Haigh

Active User


Joined: 25 Jul 2006
Posts: 475

PostPosted: Sun Apr 05, 2009 12:58 am
Reply with quote

There is a Vendor Software product that has feature for reading and
writing TDQ from Batch.

reference >>
cicswiki.org/cicswiki1/index.php?title=BatchCICS-Connect_-_24x7_Integration
Back to top
View user's profile Send private message
mots

New User


Joined: 16 May 2007
Posts: 6
Location: Pune

PostPosted: Sat Apr 11, 2009 1:55 pm
Reply with quote

Robert Thanks for clarification.

Please can anyone tell me how will write a JCL for accessing the TDQ in Batch…….. and
also will it be possible to submit a JCL program CICS program then how…...
Back to top
View user's profile Send private message
mots

New User


Joined: 16 May 2007
Posts: 6
Location: Pune

PostPosted: Sat Apr 11, 2009 3:05 pm
Reply with quote

Hello.........

Can anyone help me to know.........

1) If I have a TSQ name which is combination of (TERMID and TASKNO), from where I will get TSQ name specially TASKNO.
I Know TERMID but TASKNO is dynamic how can I find it........
I know only CEMT INQ TASK transaction which gives the Task number but it gives the current execution TASKNO, but If the time taken for execution of my PROGRAM is very short then How will I find the TASKNO.......... Is there any log very the TASKNO information will get stored............?

2) As the TDQ is read destructive, If I execute the CEBR TDQNAME command then also the data will get lost from TDQ means for the next time CEBR TDQNAME command will I get the error like TDQ Doest not exist or I will be able to see the TDQ records.........

Thanks,
Mots
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Sat Apr 11, 2009 7:42 pm
Reply with quote

There's nothing to write when accessing an extrapartition TDQ from batch -- use the dataset name on a DD statement and there you go. If you want to access an intrapartition TDQ from batch, read the manual to see if you can do what you want.

There are many, many examples of what to do to submit a job stream from a CICS program on this forum already -- search and if you have a question then let us know.

You would want to pass the task number in DFHCOMMAREA to the next program which needs to read the TSQ. If your program doesn't store the task number, there's no way to recover it since there's not really any logs that keep that data available.

Using CEBR means the data is not available to the application -- your CEBR grabbed it. Once you've read all the data in the TDQ, you would get back some kind of error (most likely QZERO) but once read, the data will not be available again.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sat Apr 11, 2009 9:00 pm
Reply with quote

Hello,

Quote:
Posted: Sat Apr 11, 2009 2:25 am Post subject: Reply to: How to access Extra partition TDQ in Batch Program
Quote:
Posted: Sat Apr 11, 2009 3:35 am Post subject: Reply to: How to access Extra partition TDQ in Batch Program

Hello.........

Can anyone help me to know.........


It is completely inappropriate/inconsiderate to post a question and only 1 hour later ask where is a reply. . .
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 Using API Gateway from CICS program CICS 0
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts How to access web services/website? Mainframe Interview Questions 4
No new posts How to get a stack trace on a looping... ABENDS & Debugging 5
No new posts Calling Java method from batch COBOL ... COBOL Programming 5
Search our Forums:

Back to Top