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

Difference between using call and link


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sunil_buet2000
Currently Banned

New User


Joined: 03 Dec 2006
Posts: 2
Location: Chennai

PostPosted: Thu Jan 25, 2007 10:21 pm
Reply with quote

hello

please anyone tell me that what is difference between using call and using link.
sunil
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Thu Jan 25, 2007 10:53 pm
Reply with quote

Spelling? icon_cool.gif
Back to top
View user's profile Send private message
Bitneuker

CICS Moderator


Joined: 07 Nov 2005
Posts: 1104
Location: The Netherlands at Hole 19

PostPosted: Fri Jan 26, 2007 6:01 pm
Reply with quote

William Thompson wrote:
Spelling? icon_cool.gif

icon_lol.gif

TS: You probably mean dynamic and static calls. Use the search funtion icon_idea.gif
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Jan 26, 2007 7:25 pm
Reply with quote

Hello,

Is the question about batch or CICS?
Back to top
View user's profile Send private message
DavidatK

Active Member


Joined: 22 Nov 2005
Posts: 700
Location: Troy, Michigan USA

PostPosted: Fri Jan 26, 2007 10:19 pm
Reply with quote

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

New User


Joined: 07 May 2006
Posts: 4

PostPosted: Tue Jan 30, 2007 9:53 am
Reply with quote

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

New User


Joined: 18 Apr 2007
Posts: 24
Location: India

PostPosted: Mon Apr 23, 2007 5:53 pm
Reply with quote

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

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Mon Apr 23, 2007 6:04 pm
Reply with quote

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
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 -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts Error while running web tool kit REXX... CLIST & REXX 5
No new posts Call program, directly from panel CLIST & REXX 9
No new posts Timestamp difference and its average ... DB2 11
No new posts Difference when accessing dataset in ... JCL & VSAM 7
No new posts Batch call online program, EXCI task ... CICS 3
Search our Forums:

Back to Top