Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

using TSQs across 2 programs

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
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    Post subject: using TSQs across 2 programs
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    Post subject: Reply to: using TSQs across 2 programs
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    Post subject:
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    Post subject:
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7254

PostPosted: Mon Sep 05, 2011 1:49 pm    Post subject: Reply to: using TSQs across 2 programs
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    Post subject:
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: 1224
Location: Israel

PostPosted: Mon Sep 05, 2011 3:19 pm    Post subject: Reply to: using TSQs across 2 programs
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    IBMMAINFRAMES.com Support Forums -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Cobol list of programs being called biswajit.dattagupta COBOL Programming 5 Tue Nov 01, 2016 2:10 am
No new posts Can sending 5 MB data between cobol p... Kevin Vaz CICS 12 Tue Oct 18, 2016 4:50 pm
No new posts User exit in COBOL programs ganasrinivasan PL/I & Assembler 0 Thu Aug 18, 2016 12:48 pm
No new posts "DFSRRC00 vs IKJEFT01" for ... arunsoods All Other Mainframe Topics 5 Fri Aug 12, 2016 9:54 pm
No new posts COBOL Programs Generator! Rohit Umarjikar COBOL Programming 1 Thu Jun 09, 2016 2:09 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us