IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How will be the processing if i replace LINK with XCTL


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
bamohan

New User


Joined: 29 Jan 2007
Posts: 33
Location: chennai

PostPosted: Wed Dec 03, 2008 11:10 am
Reply with quote

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

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Wed Dec 03, 2008 4:22 pm
Reply with quote

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

New User


Joined: 29 Jan 2007
Posts: 33
Location: chennai

PostPosted: Wed Dec 03, 2008 5:10 pm
Reply with quote

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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Dec 03, 2008 5:22 pm
Reply with quote

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 icon_biggrin.gif

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

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Wed Dec 03, 2008 5:58 pm
Reply with quote

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

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Wed Dec 03, 2008 6:09 pm
Reply with quote

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

Active User


Joined: 25 Jul 2006
Posts: 475

PostPosted: Wed Dec 03, 2008 9:38 pm
Reply with quote

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. icon_lol.gif
Back to top
View user's profile Send private message
umasankarmf

New User


Joined: 08 Sep 2008
Posts: 43
Location: india

PostPosted: Mon Dec 08, 2008 10:04 am
Reply with quote

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

New User


Joined: 21 Oct 2008
Posts: 1
Location: bangalore

PostPosted: Mon Dec 08, 2008 7:44 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CICS

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts replace word 'MONTH' with current mon... SYNCSORT 11
No new posts To replace jobname in a file with ano... SYNCSORT 12
No new posts executing XCTL command in COBOL witho... CICS 10
Search our Forums:

Back to Top