Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
How to run same trans-id with no terminal-id paralelly

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
View previous topic :: :: View next topic  
Author Message
Saikat Sengupta

New User


Joined: 08 Dec 2009
Posts: 13
Location: Mumbai

PostPosted: Wed Jan 05, 2011 2:02 am    Post subject: How to run same trans-id with no terminal-id paralelly
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

Site Director


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

PostPosted: Wed Jan 05, 2011 2:23 am    Post subject:
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: 8165
Location: East Dubuque, Illinois, USA

PostPosted: Wed Jan 05, 2011 2:26 am    Post subject:
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: 13
Location: Mumbai

PostPosted: Wed Jan 05, 2011 12:57 pm    Post subject: Reply to: How to run same trans-id with no terminal-id paral
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: 2504
Location: Atlanta, Georgia, USA

PostPosted: Fri Jan 07, 2011 5:20 am    Post subject: Reply to: How to run same trans-id with no terminal-id paral
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: 6968
Location: porcelain throne

PostPosted: Fri Jan 07, 2011 12:55 pm    Post subject:
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

Site Director


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

PostPosted: Fri Jan 07, 2011 8:20 pm    Post subject: Reply to: How to run same trans-id with no terminal-id paral
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    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 CICS Terminal Color Code baratchandar CICS 2 Wed Sep 03, 2014 1:14 am
No new posts If there is more than one office No r... revdpoel DB2 3 Sat Jul 27, 2013 2:38 pm
No new posts TN3270 Terminal Emulator Software Vivek Anand IBM Tools 8 Tue Jun 11, 2013 10:24 am
No new posts SAME TERMINAL-SAME CICS TRANSACTION I... Amit_Singh47 CICS 9 Mon May 20, 2013 9:28 am
No new posts How to prepare a map without sending ... Simone Salzmann CICS 19 Mon Nov 26, 2012 10:45 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us