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

using TSQs across 2 programs


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

New User


Joined: 20 Apr 2011
Posts: 12
Location: India

PostPosted: Mon Sep 05, 2011 12:21 pm
Reply with quote

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
View user's profile Send private message
sunil.maaraka

New User


Joined: 20 Apr 2011
Posts: 12
Location: India

PostPosted: Mon Sep 05, 2011 12:22 pm
Reply with quote

PROGA is calling PROGB...FYI icon_smile.gif
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Mon Sep 05, 2011 12:55 pm
Reply with quote

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
View user's profile Send private message
sunil.maaraka

New User


Joined: 20 Apr 2011
Posts: 12
Location: India

PostPosted: Mon Sep 05, 2011 1:19 pm
Reply with quote

ya i know..USING as well as COMMAREA will help this...but..i need use TSQ for this..
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Mon Sep 05, 2011 1:49 pm
Reply with quote

Unless you can explain why you need a TSQ, I don't see that you do.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Mon Sep 05, 2011 2:26 pm
Reply with quote

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

REXX Moderator


Joined: 13 Mar 2006
Posts: 1353
Location: Israel

PostPosted: Mon Sep 05, 2011 3:19 pm
Reply with quote

Ohhh come on, guys....
Even if this is a BS requirement, Sunil is entitled to receive an answer. icon_smile.gif

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
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 Fetch data from programs execute (dat... DB2 3
No new posts Passing Parameters to Programs Invoke... PL/I & Assembler 5
No new posts Finding Assembler programs PL/I & Assembler 5
No new posts Recompiling programs after a copybook... COBOL Programming 1
No new posts Can you give me examples of programs ... CLIST & REXX 22
Search our Forums:

Back to Top