View previous topic :: View next topic
|
Author |
Message |
sunil.maaraka
New User
Joined: 20 Apr 2011 Posts: 12 Location: India
|
|
|
|
Hello Experts,
I have following requirement..could you please help.
PROGA and PROGB.
I have to write one TSQ in PROGA and read it in PROGB.
As per me, the logic will be as follows.
PROGA:
Define TSQ - name and other details.
WRITEQ
PROGB:
READQ
process data
DELETEQ
Pls could you confirm if this is fine? |
|
Back to top |
|
|
sunil.maaraka
New User
Joined: 20 Apr 2011 Posts: 12 Location: India
|
|
|
|
PROGA is calling PROGB...FYI |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
if PROGA is CALLing PROGB,
why bother with the queue,
just pass the data in the CALL USING LIST.
If this is class-room work,
you are in the wrong website. |
|
Back to top |
|
|
sunil.maaraka
New User
Joined: 20 Apr 2011 Posts: 12 Location: India
|
|
|
|
ya i know..USING as well as COMMAREA will help this...but..i need use TSQ for this.. |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
Unless you can explain why you need a TSQ, I don't see that you do. |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
The commarea is a CICS area. You are using a CALL,
which means you define the areas which you want to pass with the CALL USING list.
And part of you job as a developer is to call the designers on their BS. |
|
Back to top |
|
|
Marso
REXX Moderator
Joined: 13 Mar 2006 Posts: 1353 Location: Israel
|
|
|
|
Ohhh come on, guys....
Even if this is a BS requirement, Sunil is entitled to receive an answer.
Basically, TS is used to pass data between different tasks.
For this to work, the tasks need to use the same TS name.
There are many methods used to give the TS a unique name that can be recognized by the partner task (using transaction and terminal ids for example).
In your case, as there is only one task (and that's why use of TS should be justified), you can pass the queue name in one of the USING fields. |
|
Back to top |
|
|
|