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
 

 

How will be the processing if i replace LINK with XCTL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
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    Post subject: How will be the processing if i replace LINK with XCTL
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: 1288
Location: Chennai, India

PostPosted: Wed Dec 03, 2008 4:22 pm    Post subject: Reply to: How will be the processing if i replace LINK with
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    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10256
Location: italy

PostPosted: Wed Dec 03, 2008 5:22 pm    Post subject: Reply to: How will be the processing if i replace LINK with
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: 1288
Location: Chennai, India

PostPosted: Wed Dec 03, 2008 5:58 pm    Post subject: Reply to: How will be the processing if i replace LINK with
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: 8057
Location: East Dubuque, Illinois, USA

PostPosted: Wed Dec 03, 2008 6:09 pm    Post subject:
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    Post subject:
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    Post subject:
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    Post subject:
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    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 Fileaid Update Replace with null string descann Compuware & Other Tools 4 Mon May 15, 2017 3:00 pm
No new posts Replace values in the input data Vikas Maharnawar DFSORT/ICETOOL 10 Thu May 11, 2017 2:18 pm
No new posts File processing vishwakotin Mainframe Interview Questions 9 Fri Apr 28, 2017 11:38 am
No new posts DIrect link of dynam/nodynam nkjain87 COBOL Programming 2 Mon Apr 24, 2017 6:23 pm
No new posts Asynchronous CICS Processing Question moezbud CICS 1 Mon Mar 06, 2017 6:13 pm


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