Page 1 of 1

When to use TDQ ?

PostPosted: Wed Apr 23, 2014 9:42 pm
by kumar009
Please give me few real time scenarios where in developers prefer to use TDQ's rather than TSQ's.

To the far I know, in simple words, DFHCOMMArea will be used to pass the pieces of data between conversations of the program and from one program to other program,
Developers prefer to use TSQ over DFHCOMMArea to store and retrieve any information in the form of a record or more. Mostly used to online updates of the records in VSAM files and/or databases.

Please correct me If I'm wrong, give suitable examples and please provide me any good resources to know them more.

Re: When to use TDQ ?

PostPosted: Thu Apr 24, 2014 1:12 am
by Peter_Mann
sounds like a homework assignment I had once :D

Re: When to use TDQ ?

PostPosted: Thu Apr 24, 2014 6:18 am
by Robert Sample
Your post title mentions TDQ (Transient Data Queue) while the post itself only mentions TSQ (Temporary Storage Queue) and DFHCOMMAREA. Perhaps your first task should be to figure out just what you want to know?

And as pointed out, the tone of your post reflects a homework assignment, not someone attempting to expand their knowledge.

Re: When to use TDQ ?

PostPosted: Thu Apr 24, 2014 10:33 am
by kumar009
Yes, I just quoted my understanding about "When to use TSQ over DFHCOMMArea".
Next question is about TDQ. I don't get any real-time scenario idea where in TDQ is preferrable choice over TSQ.

Re: When to use TDQ ?

PostPosted: Thu Apr 24, 2014 2:49 pm
by NicC
I don't get any real-time scenario idea where in TDQ is preferrable choice over TSQ

Are you in a project that needs this information? If not, concentrate on what you need now rather than everything. You will pick up a lot of this info in general office techno-chat and by asking questions at that time. As a beginner you will not be making the decision - your team lead or application architect will. You can always ask that person why, in this case, they chose one option over the other.

Re: When to use TDQ ?

PostPosted: Thu Apr 24, 2014 3:26 pm
by Robert Sample
In general, the choice is not TDQ versus TSQ -- if the TDQ is needed, then a TSQ will not work as a replacement. TSQ might be a replacement for DFHCOMMAREA, but since TSQ is persistent past the transaction while DFHCOMMAREA is not, the two are not completely interchangeable.