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

CICS and the TDQ?


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

Active User


Joined: 31 Jul 2007
Posts: 136
Location: india

PostPosted: Tue Mar 09, 2010 3:47 pm
Reply with quote

After looking at what is use of TDQ and TSQ I still have questions...
srinivas.u wrote:
hi,

TDq -> if you want some processing should happen depending on the data that you have read from the screen for example.

user wants to print the screen, take the information write it to a TDQ
this will trigger a transaction which does the printing.

Trigger level tells n indicates, after nth record is written to a TDQ it should trigger the transaction associated with it.

TDQ has to be defined prior to use.

let me know if you need more with examples.


I can understand the usage of TSQ , but could you explain TDQ with any other example , i still am not clear where TDQ would be better than TSQ ?

Thanks
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: Tue Mar 09, 2010 3:59 pm
Reply with quote

You felt the need to revive a topic after almost 5 and 1/2 years?

A TDQ can point to a sequential file -- so if you want to retain the data past CICS shut down, for example, you could use an extrapartition TDQ (which is what a sequential file TDQ is called) to save the data.
Back to top
View user's profile Send private message
cvishu

Active User


Joined: 31 Jul 2007
Posts: 136
Location: india

PostPosted: Tue Mar 09, 2010 6:39 pm
Reply with quote

Robert Sample wrote:
You felt the need to revive a topic after almost 5 and 1/2 years?


My Google search brought up the page an i just posted my query icon_smile.gif

Anyways thanks for the reply , just one confusion , i thought TDQ dont occupy physical memory , so when you say sequential file , i am a little confused.

could you explain a liitle elobrate..sorry if i sound dumb
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: Tue Mar 09, 2010 7:10 pm
Reply with quote

There are intrapartition TD queues and extrapartition TD queues. I recommend you click the manuals link at the top of the page, find the CICS Language Reference and Programming Guide manuals and read up on them.

As far as TDQ not occupying physical memory, the manual specifically states in section 4.8.1:
Quote:
"Intrapartition" refers to data on direct-access storage devices for use with one or more programs running as separate tasks. Data directed to or from these internal queues is referred to as intrapartition data; it must consist of variable-length records. All intrapartition transient data destinations are held as queues in the same VSAM data set, which is managed by CICS. An intrapartition destination requires a resource definition containing information that locates the queue in the intrapartition data set. Intrapartition queues can be associated with either a terminal or an output data set. When data is written to the queue by a user task, the queue can be used subsequently as input data by other tasks within the CICS region. All access is sequential, governed by read and write pointers. Once a record has been read, it cannot be read subsequently by another task. Intrapartition data may ultimately be transmitted upon request to the terminal or retrieved sequentially from the output data set.
So they are taking physical space and CICS is using memory for buffering the data.
Back to top
View user's profile Send private message
pkmurali
Warnings : 1

Active User


Joined: 15 Dec 2005
Posts: 271

PostPosted: Wed Mar 24, 2010 1:17 pm
Reply with quote

Robert,

One of my CICS program performs WRITEQ (TDQ) which writes the data into SPOOL. What is the set up required to write the TDQ? Is there any set up required in DCT? Please suggest.

Thanks,
Murali.
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 Calling an Open C library function in... CICS 1
No new posts How to 'Ping' a CICS region in JCL CICS 2
No new posts Parallelization in CICS to reduce res... CICS 4
No new posts How to avoid duplicating a CICS Web S... CICS 0
Search our Forums:

Back to Top