View previous topic :: View next topic
|
Author |
Message |
mots
New User
Joined: 16 May 2007 Posts: 6 Location: Pune
|
|
|
|
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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
Earl Haigh
Active User
Joined: 25 Jul 2006 Posts: 475
|
|
Back to top |
|
|
mots
New User
Joined: 16 May 2007 Posts: 6 Location: Pune
|
|
|
|
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 |
|
|
mots
New User
Joined: 16 May 2007 Posts: 6 Location: Pune
|
|
|
|
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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
|