View previous topic :: View next topic |
Author |
Message |
Hema_Manyam Beginner
Joined: 15 Dec 2005 Posts: 20 Topics: 9
|
Posted: Fri Dec 16, 2005 2:51 am Post subject: CICS XCTL - LINK - CALL |
|
|
Hi,
I have 3 programs PGM1 calls PGM2, PGM2 inturn calls PGM3.
How will this be treated by CICS, when there are updates in all 3 pgms.
1) If we use XCTL (PGM1 XCTL PGM2, PGM2 XCTL PGM3) ? does all the pgms belong to same task ??
2) If we use LINK or CALL in place of XCTL above, does they belong to same task ?
Need to know the difference because, in case of SYNCPOINT / ROLLBACK the behaviour depends on whether it belongs to same task or not ?
Thanks. |
|
Back to top |
|
 |
Jeba Beginner

Joined: 02 Dec 2002 Posts: 48 Topics: 9 Location: Columbus, GA
|
Posted: Mon Dec 19, 2005 6:04 am Post subject: |
|
|
Hema manyam,
If you are using XCTL/LINK in your program to call other programs, all program execution will be treated as a single task only. If you really want to go for a separate task for each program, change your program in such a way to use START command in CICS instead of XCTL/LINK. Using START command, you can start a new transaction(program) which will be separately a new task. _________________ Thanks,
Jeba
(Known is a drop Unknown is an ocean) |
|
Back to top |
|
 |
Manas Biswal Intermediate

Joined: 29 Nov 2002 Posts: 382 Topics: 27 Location: Chennai, India
|
Posted: Mon Dec 19, 2005 2:58 pm Post subject: |
|
|
Hema_Manyam,
Just to add to what Jeba said, if you want further information, have a look at the last post in the following topic -
http://mvsforums.com/helpboards/viewtopic.php?t=4375&highlight=task
HTH...Regards,
Manas _________________ There is no path to peace. Peace is the path.
- Mahatma Gandhi (1869-1948) |
|
Back to top |
|
 |
Hema_Manyam Beginner
Joined: 15 Dec 2005 Posts: 20 Topics: 9
|
Posted: Tue Dec 20, 2005 12:38 am Post subject: |
|
|
Thank you Jeba & Manas. That was a very nice explanation.
MVSFORUMS is a great group. I am happy to be part of it.
Thanks
Hema |
|
Back to top |
|
 |
|
|