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 

TDQ's

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> CICS and Middleware
View previous topic :: View next topic  
Author Message
sunshine
Beginner


Joined: 20 Sep 2004
Posts: 5
Topics: 4

PostPosted: Thu Sep 30, 2004 7:02 am    Post subject: TDQ's Reply with quote

hi,
i need to understand how exactly does a batch and cics program share data using a extrapartition TDQ. i have understood that the file is a VSAM/ESDS file, but i havent understood how the batch program would access it in the program.it would be very nice of u if u could send some sample code wrting to a TDQ and the other program reading the TDQ.
awaiting your reply.
thank you.
sunshine
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Thu Sep 30, 2004 7:31 am    Post subject: Reply with quote

Sunshine,

A TDQ is a Transient Data Queue and is a pre-defined dataset which cannot be created or deleted dynamically and can only be read or written sequentially. Also, a record is DELETED from TDQ as soon as it has been read.TDQ is written to Disk.

Define a DCT entry for your TDQ(intra/extra)

Code:

Code:
DFHDCT   TYPE=INTRA/EXTRA,
              DESTID=PRT1,
              DSCNAME=DDNAME,
              OPEN=DEFERRED


Assign your vsam file to the DDname defined above.

Check this links for READING a TDQ

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DFHJAP4C/1.149?DT=20030108162734

Check this links for writting a TDQ

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DFHJAP4C/1.267?DT=20030108162734

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
sunshine
Beginner


Joined: 20 Sep 2004
Posts: 5
Topics: 4

PostPosted: Thu Sep 30, 2004 11:20 pm    Post subject: TDQ in batch program Reply with quote

thanx for the information on the TDQ. but i really wanted to know how the batch program would access the TDQ since its a normal VSAM file. i understand that the ddname id the DSCname we enter while creating the TDQ. BUt when we write
//ddname DD DSN = 'somefilename',disp=shr......
and this ddname id the assign to ddname in the cobol batch program

how does the batch application programmer know the name of the 'somefilename',since the TDQ was created with the id,dscname etc. does the system assign a name for the VSAM file.
awaiting a quick reply. 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:51 am    Post subject: Reply with quote

Quote:

i need to understand how exactly does a batch and cics program share data using a extrapartition TDQ. i have understood that the file is a VSAM/ESDS file,


Extrapartition TDQs are not VSAM, they are QSAM files. This is clearly stated in the CICS resource definition guide.
The file name will be defined in the RDO TDQ definition's DSName parameter or possibly in a DD statement in the CICs startup JCL. It is not system generated.
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 -> CICS and Middleware 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