View previous topic :: View next topic
|
Author |
Message |
sunil_buet2000 Currently Banned New User
Joined: 03 Dec 2006 Posts: 2 Location: Chennai
|
|
|
|
hello
please anyone tell me that what is difference between using call and using link.
sunil |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
Spelling? |
|
Back to top |
|
|
Bitneuker
CICS Moderator
Joined: 07 Nov 2005 Posts: 1104 Location: The Netherlands at Hole 19
|
|
|
|
William Thompson wrote: |
Spelling? |
TS: You probably mean dynamic and static calls. Use the search funtion |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Is the question about batch or CICS? |
|
Back to top |
|
|
DavidatK
Active Member
Joined: 22 Nov 2005 Posts: 700 Location: Troy, Michigan USA
|
|
|
|
It?s been a long time since I?ve worked with CICS, but if my memory serves me, a CICS ?link? is very much like an operation system ?call?, in that you transfer control to the module and then receive control back. The difference is that in a ?call? the operating system (MVS) manages the loading of the module and the working storage for it, and in the case of a ?link? CICS takes over the function of the operating system and does the loading and management of storage. The operating system and CICS work with different storage pools and because of the nature of CICS, it manages storage better than the operating system.
Here?s an example of why. In a normal batch job, when you call (dynamic) a subroutine, the operating system locates the module and loads it into storage, at the end of your job, the storage is then released back to the operating system. In CICS however, if you do a ?CALL?, and I think you can, again, it?s the operating system that locates the module, loads it into the operating systems storage pool, but because CICS does not end when your transaction ends, the subroutine storage is not released back to the operating system until CICS is brought down.
In the case of a ?link? it?s CICS that does the loading of the module into CICS?s storage pool. CICS knows when your transaction ends and keeps track of the number of transactions currently using the module. When CICS runs low on storage pool it will unload some of the modules that are not in use to enable it to load others. |
|
Back to top |
|
|
sdpk_ind
New User
Joined: 07 May 2006 Posts: 4
|
|
|
|
i guess...call is used to call the subprogram within a program...while link is used to call a different program i.e pgm1 calls pgm2. |
|
Back to top |
|
|
munikumar Currently Banned New User
Joined: 18 Apr 2007 Posts: 24 Location: India
|
|
|
|
Loosely speaking
A CALL used to call a sub-program in batch programming.
A LINK used to call a sub-program in on-line programming.
Both CALL & LINK will return back to the main program in normal conditions. |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
munikumar wrote: |
A CALL used to call a sub-program in batch programming. |
But you can use a CALL on-line also, and dynamic to boot..... |
|
Back to top |
|
|
|