MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CICS XCTL - LINK - CALL

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> CICS and Middleware
View previous topic :: View next topic  
Author Message
Hema_Manyam
Beginner


Joined: 15 Dec 2005
Posts: 20
Topics: 9

PostPosted: Fri Dec 16, 2005 2:51 am    Post subject: CICS XCTL - LINK - CALL Reply with quote

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
View user's profile Send private message
Jeba
Beginner


Joined: 02 Dec 2002
Posts: 48
Topics: 9
Location: Columbus, GA

PostPosted: Mon Dec 19, 2005 6:04 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Manas Biswal
Intermediate


Joined: 29 Nov 2002
Posts: 382
Topics: 27
Location: Chennai, India

PostPosted: Mon Dec 19, 2005 2:58 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Yahoo Messenger
Hema_Manyam
Beginner


Joined: 15 Dec 2005
Posts: 20
Topics: 9

PostPosted: Tue Dec 20, 2005 12:38 am    Post subject: Reply with quote

Very Happy

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> CICS and Middleware All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group