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
 

 

Multiple Tasks per transaction

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

New User


Joined: 15 Jun 2005
Posts: 53
Location: India, Chennai

PostPosted: Wed Dec 09, 2009 1:13 pm    Post subject: Multiple Tasks per transaction
Reply with quote

What is the difference between multiple tasks/tran and 1 task/ tran ?.

Is that anything that the appication program needs to handle apart from Transaction class definition in CICS to run multiple tasks per transaction ?.

I believe that the multiple tasks that run under a transaction share the same program code in memory. if we have 1 task / tran and then all the transaction have separate program code in memory. Correct me If i am wrong.

Thanks,
Ramesh
Back to top
View user's profile Send private message

Garry Carroll

Active Member


Joined: 08 May 2006
Posts: 992
Location: Dublin, Ireland / Edinburgh, Scotland

PostPosted: Wed Dec 09, 2009 1:42 pm    Post subject:
Reply with quote

Your terminology needs clarification. Under CICS, the terms 'task' and 'transaction' may be interchangeable.

The term 'transaction' is often used to refer to a business transaction. This business transaction may comprise one or several CICS tasks.

All instances of a given CICS transid share the same program storage but each task has separate working-storage. Multiple CICS transids may be defined to use the same program, in which case all such definitions share the same program and each task has separate working-storage.

If a business transaction comprises multiple tasks using multiple programs, one copy of each program involved is in use and each task has its own working-storage.

Quote:
if we have 1 task / tran and then all the transaction have separate program code in memory

You are wrong, see description above.

Garry.
Back to top
View user's profile Send private message
Rameshs

New User


Joined: 15 Jun 2005
Posts: 53
Location: India, Chennai

PostPosted: Wed Dec 09, 2009 2:41 pm    Post subject:
Reply with quote

Thank You Garry.

I refer here the transaction as Trans-id not the business transaction.

Since there is no difference in sharing the program code, then Why do we go for multiple CICS transids while we have the option to have multiple tasks per transid ?.

What is multithreading in CICS ?.
According to your statement, If a program code is shared by more than 1 tasks either same or different transaction is called multithreading.

Kindly advise
Back to top
View user's profile Send private message
Garry Carroll

Active Member


Joined: 08 May 2006
Posts: 992
Location: Dublin, Ireland / Edinburgh, Scotland

PostPosted: Wed Dec 09, 2009 2:54 pm    Post subject:
Reply with quote

Quote:
Since there is no difference in sharing the program code, then Why do we go for multiple CICS transids while we have the option to have multiple tasks per transid ?.

The answer to this lies in the design. For example, you might want to gather statistics on usage level of a task - in which case different groups of people would execute the same function using different transids. Your reporting on SMF could then differentiate between the groups. There might be many other reasons for having different transids execute the same program.

Quote:
What is multithreading in CICS ?.

If two or more tasks are sharing the same program, that is multi-threading. In the example of groups above, several users in one group can be simultaneously running TRAN1 which is executing PROGRAMA while several other users can also be running TRAN2 which is also executing PROGRAMA. There is one copy of PROGRAMA loaded,while each user is allocated their own working-storage and CICS cuts SMF records for each individual transaction. SMF reporting can tell how many instances of TRAN1 and TRAN2 were run.

Hope this clarifies,
Garry.
Back to top
View user's profile Send private message
Rameshs

New User


Joined: 15 Jun 2005
Posts: 53
Location: India, Chennai

PostPosted: Wed Dec 09, 2009 3:15 pm    Post subject:
Reply with quote

Thank You Garry. I got clarified now.
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 transaction slow response time vasanthz All Other Mainframe Topics 3 Thu Jan 19, 2017 1:31 am
No new posts Detailed Transaction History report f... Kyle Carroll CICS 5 Tue Oct 18, 2016 12:42 am
No new posts How to calculate an specific transact... lind sh CICS 2 Tue Sep 13, 2016 9:20 pm
No new posts Converting multiple VB files to FB fi... Viswanath Reddy JCL & VSAM 6 Mon Aug 08, 2016 11:49 pm
No new posts Execute multiple DB2 Load commands in... faizm DB2 4 Wed Aug 03, 2016 12:53 pm


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