View previous topic :: View next topic |
Author |
Message |
sunshine Beginner
Joined: 20 Sep 2004 Posts: 5 Topics: 4
|
Posted: Sun Oct 03, 2004 11:55 pm Post subject: TDQs in batch applications |
|
|
hi,
i have an CICS application thats writes certian records into a TDQ. a batch application in another region reads these set of records to generate a report. i had 2 queries regarding the way the batch application woulg access the file. i understood that the TDQ is a normal sequential VSAM file.so this file has to be cataloged rite?
1) BY what name id it cataloged, and how does the batch application program access it in the JCL it submits. the DD stepname has to be the DSCNAME, so what do we wrt under the DSN name.
2) can the CICS application and the batch application simultaneously access the file at the same time.
awaiting a quick response.
thank you!!
sunshine |
|
Back to top |
|
|
Mike Chantrey Intermediate
Joined: 10 Sep 2003 Posts: 234 Topics: 1 Location: Wansford
|
Posted: Mon Oct 04, 2004 8:29 am Post subject: |
|
|
There are two types of TDQ - Intra-partition, which is entirely internal to CICS, and extra-partition, which is connected to an external dataset. The external dataset can be a non-VSAM sequential dataset, a PDS member (member name must be specified) or a JES spool dataset. A TDQ cannot connect to any sort of VSAM file. The file name is specified in the DSname parameter of the RDO TDQ definition or in the equivalent DCT MACRO parameter if you are still using the old method. Your CICS sysprogs can tell you what the dataset name is if you can't look at this info yourself
If the dataset is allocated as DISP=SHR to CICS and the batch job, the batch job can read it while CICS is writing to it; but you would probably get corruption if they both tried to write to it. |
|
Back to top |
|
|
|
|