MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TDQs in batch applications

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
sunshine
Beginner


Joined: 20 Sep 2004
Posts: 5
Topics: 4

PostPosted: Sun Oct 03, 2004 11:55 pm    Post subject: TDQs in batch applications Reply with quote

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
View user's profile Send private message
Mike Chantrey
Intermediate


Joined: 10 Sep 2003
Posts: 234
Topics: 1
Location: Wansford

PostPosted: Mon Oct 04, 2004 8:29 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group