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

How to run same trans-id with no terminal-id paralelly


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

New User


Joined: 08 Dec 2009
Posts: 15
Location: Mumbai

PostPosted: Wed Jan 05, 2011 2:02 am
Reply with quote

Hi
I am stuck with a problem -

I am to design an online module/transaction which is not associated with any terminal or screen. The requirement is such that at any given point of time multiple instances of the transaction may run. Regarding this I have the following doubts:

1) Is it possible to run multiple instances of a transaction which is not associated with any terminal?

2) Even if we can, I need to write unique TSQ for each of the instances. So what should be the convention that I should follow to give a unique name to each TSQ related to a particular instance?
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Jan 05, 2011 2:23 am
Reply with quote

Hello and welcome to the forum,

Quote:
1) Is it possible to run multiple instances of a transaction which is not associated with any terminal?

Yes - suggest you research asyncronous transactions.

Quote:
2) Even if we can, I need to write unique TSQ for each of the instances.

Why do you believe this is the only way to do what you want?
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Wed Jan 05, 2011 2:26 am
Reply with quote

Quote:
2) Even if we can, I need to write unique TSQ for each of the instances.
Why would this be a problem? Use the task number, which is unique, in the TSQ name and pass it in DFHCOMMAREA as needed. There are other ways to obtain unique names as well.
Back to top
View user's profile Send private message
Saikat Sengupta

New User


Joined: 08 Dec 2009
Posts: 15
Location: Mumbai

PostPosted: Wed Jan 05, 2011 12:57 pm
Reply with quote

Thanks for the replies.

I was not aware that after execution of Start command the control comes back to the Starter program.

To answer the query
Quote:
Why do you believe this is the only way to do what you want?


I have an online module Pgm-A which will read files from different sources and will LINK to module Pgm-B to process the records of the individual files. Now Pgm-A will receive request from MQ. The size/length of the request data is more than 54KB. The problem arises when I want to send the data to PgmB. One way would be to use CHANNELs to pass data to Pgm-B. But that option was discarded, so the only other way I know to pass this 54+KB length of data is TSQ. Since PgmA may have multiple instances I need to name each TSQ uniquely.

The problem statement may be lengthy but cant brief the statement more.[/quote]
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Fri Jan 07, 2011 5:20 am
Reply with quote

Quote:
the only other way I know to pass this 54+KB length of data is TSQ

Unfortunately, the maximum-length for any TSQ Item/Record (as well as DFHCOMMAREA/EIBCALEN) is 32K-4 (32763).

If you're using CICS/TS 3.1 or greater, review CHANNELS and CONTAINERS, which overcome this 32763 max limit.

Bill
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Fri Jan 07, 2011 12:55 pm
Reply with quote

Bill,

Saikat earlier said:
Quote:
One way would be to use CHANNELs to pass data to Pgm-B. But that option was discarded


not much use try to help people who insist on discarding the appropriate options.
(and obviously have little system knowledge, otherwise the idiotic 54K TSQ item would not have been mentioned by the TS)

as well as reviewing why all 54K needs to be passed around.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Jan 07, 2011 8:20 pm
Reply with quote

Hi Dick,

Quote:
as well as reviewing why all 54K needs to be passed around.
Possibly a very questionable design or a lazy developer that did not want to think this thru. . .

It is always entertaining to hear what "must" be done or what "cannot" be done. All in the name of "the requirement". . . icon_cool.gif

d
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 Dynamically switching terminal model TSO/ISPF 9
No new posts Ring the Bell on a 3270 terminal PL/I & Assembler 5
No new posts How to get the Physical terminal name IMS DB/DC 0
No new posts How to stop a runaway CICS trans with... CICS 13
No new posts CICS Terminal Color Code CICS 2
Search our Forums:

Back to Top