Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Difference between using call and link

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
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    Post subject: Difference between using call and link
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: 3158
Location: Tucson AZ

PostPosted: Thu Jan 25, 2007 10:53 pm    Post subject:
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: 1105
Location: The Netherlands at Hole 19

PostPosted: Fri Jan 26, 2007 6:01 pm    Post subject:
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

Site Director


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

PostPosted: Fri Jan 26, 2007 7:25 pm    Post subject:
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    Post subject: Re: Difference between using call and link
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    Post subject: Re: Difference between using call and link
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    Post subject: Re: Difference between using call and link
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: 3158
Location: Tucson AZ

PostPosted: Mon Apr 23, 2007 6:04 pm    Post subject: Re: Difference between using call and link
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    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts ISMF Difference between volume count ... upendrasri IBM Tools 2 Tue Dec 05, 2017 12:40 pm
No new posts Finding difference between two PS fil... Vignesh Sid SYNCSORT 5 Mon Oct 30, 2017 1:13 pm
No new posts IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts Difference in SORT & ICETOOL Mohan Kothakota DFSORT/ICETOOL 5 Fri Sep 22, 2017 4:56 pm
No new posts DIrect link of dynam/nodynam nkjain87 COBOL Programming 2 Mon Apr 24, 2017 6:23 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us