GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Mainframe  >  COBOL
Go To First  |  Previous Question  |  Next Question 
 COBOL  |  Question 36 of 162    Print  
What is the difference between Call and Link in cobol?

  
Total Answers and Comments: 8 Last Update: October 13, 2009     Asked by: kavitha 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: Lance
 

A Cobol Call can be done from a batch or a CICS program and is used to pass and receive data back from another cobol program. CALL XPDF321  USING PDF321-LK. would be a dynamic call (resolved at execution time),  
CALL 'XPDF321'  USING PDF321-LK would be a static call resolved when the program is compiled. A call from a CICS program would be outside of CICS since it does not involve the exec cics command.

A link is a CICS command and is used to pass data to and receive data from a CICS program. data is passed in the CICS commarea.

    

 



Above answer was rated as good by the following members:
memays
December 09, 2005 09:38:58   #1  
Ramesh        

RE: What is te difference between Call and Link in cob...

Call means that we no need to do ppt entry.

For link we have to do ppt entry.


 
Is this answer useful? Yes | NoAnswer is useful 0   Answer is not useful 1Overall Rating: -1    
December 22, 2005 08:38:28   #2  
SitaRamaRao        

RE: What is te difference between Call and Link in cob...
Call canot be used when the program contains CICS statements.
 
Is this answer useful? Yes | No
December 31, 2005 01:25:54   #3  
sunil        

RE: What is te difference between Call and Link in cob...

call means u r calling a predifined cobol app in to u r called program while running time only.

but link u r calling sub program into main while compiling time.


 
Is this answer useful? Yes | No
January 16, 2006 08:57:53   #4  
Lance        

RE: What is te difference between Call and Link in cob...

A Cobol Call can be done from a batch or a CICS program and is used to pass and receive data back from another cobol program. CALL XPDF321 USING PDF321-LK. would be a dynamic call (resolved at execution time)
CALL 'XPDF321' USING PDF321-LK would be a static call resolved when the program is compiled. A call from a CICS program would be outside of CICS since it does not involve the exec cics command.

A link is a CICS command and is used to pass data to and receive data from a CICS program. data is passed in the CICS commarea.



 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
May 16, 2006 06:40:40   #5  
pr        

RE: What is te difference between Call and Link in cob...

call; control goes sub program returns back to mainprog this is used in cobol

Link: this is also same bur it is used in cics


 
Is this answer useful? Yes | No
August 27, 2007 03:07:15   #6  
santosh        

RE: What is the difference between Call and Link in co...
In the cal statement the called program is included in the load module so if we changed the called program we have to compile the load module again. but in the link we need not to recompile the load module after changing the linked program.
 
Is this answer useful? Yes | No
January 08, 2008 11:18:25   #7  
lfrank Member Since: January 2008   Contribution: 9    

RE: What is the difference between Call and Link in cobol?
Be aware that CALL does not mean the called module is part of the load module. That is only true if it is a Static call. Dynamic calls do not include the called routine in the load module.

This question must be related to CICS since COBOL does not have a LINK statement. There are distinctions as listed below:

Static CALL: Called module is part of the load module. CICS knows nothing about it and doesn't get involved with the communication between the modules.

Dynamic CALL: Called module is not part of the load module. CICS needs a PPT entry for both the called and calling program. Under the covers CICS treats it like a LINK request. Arguments are passed as with a static call.

LINK: CICS command-level request to pass control to another module with a return back to the caller. Arguments are passed in a COMMAREA.

 
Is this answer useful? Yes | No
October 12, 2009 16:20:30   #8  
TheMadProfessor Member Since: March 2006   Contribution: 13    

RE: What is the difference between Call and Link in cobol?
CALL is an actual COBOL verb which invokes an external program and then returns. LINK does much the same but is a CICS verb not a COBOL one.
 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape