View previous topic :: View next topic
|
Author |
Message |
bamohan
New User
Joined: 29 Jan 2007 Posts: 33 Location: chennai
|
|
|
|
Here is my scenario -
Program A connects to Program B using the CICS LINK command.
Several instances of Program A is being linked to Program B at a same time.
Here my question is Whether the second instance will wait for the first instance to be complete or they are treated as independent.
My next question is How will be the processing if i replace LINK command with XCTL command.
Please express your views. Thanks. |
|
Back to top |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
mohan,
Quote: |
My next question is How will be the processing if i replace LINK command with XCTL command.
|
It depends on your business requirement. If you want the control to be back to the called program use LINK else go for XCTL. |
|
Back to top |
|
|
bamohan
New User
Joined: 29 Jan 2007 Posts: 33 Location: chennai
|
|
|
|
Aru,
I'm aware of the difference between LINK and XCTL, But i would like to know the processing of the Instances..
Whether the second instance will wait for the first instance to be complete or they are treated as independent. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
Quote: |
... if i replace LINK command with XCTL command. |
Quote: |
I'm aware of the difference between LINK and XCTL |
are You sure about it
after an XCTL no further processing in the <CALLING> program will take place
multitasking/threading has nothing to do with the way a program is being called |
|
Back to top |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
bamohan,
Quote: |
Whether the second instance will wait for the first instance |
What do you mean by instance? Please explain.
As E.S said multitasking/threading has nothing to do with the way a program is being called. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
|
|
|
|
Quote: |
Program A connects to Program B using the CICS LINK command.
Several instances of Program A is being linked to Program B at a same time.
Here my question is Whether the second instance will wait for the first instance to be complete or they are treated as independent. |
You are not clear about what you're asking here. If you are asking about program A linking serially to program B in one execution, this is a serial process and proceeds A -> B -> return to A -> B -> return to A and so forth.
If you are asking when several occurrences of A are executing as transactions in CICS and link to program B independently of one another, then each execution of B occurs independently and in parallel -- just like each execution of program A is independent and parallel. |
|
Back to top |
|
|
Earl Haigh
Active User
Joined: 25 Jul 2006 Posts: 475
|
|
|
|
Quote: |
I'm aware of the difference between LINK and XCTL |
If this is true, then you should be able to answer your own question. |
|
Back to top |
|
|
umasankarmf
New User
Joined: 08 Sep 2008 Posts: 43 Location: india
|
|
|
|
Hi bamohan,
If you know the difference between LINK and XCTL, you have the solution for your questions. Just think you will get the solution by yourself.
If you code XCTL in the program the control will never back to the main program so there is no other execution in the main program.
If code LINK the control will back to the main program once sub program execution completes.
Now I think you got better clarification.
If any corrections .............. well comes you....
Regards
umasankar |
|
Back to top |
|
|
ncg1977
New User
Joined: 21 Oct 2008 Posts: 1 Location: bangalore
|
|
|
|
Hi Mohan,
If program A is connecting to program B by LINK, then program A
will not stop executing. It will wait for the control to come back from B.
If program A is connecting to program B by XCTL, then program A will stop executing. After program B stops executing, control will go back to CICS.
Hope this clears your doubt.
Regards,
Nataraj |
|
Back to top |
|
|
|