Series: Subject: Topic:
Question: 156 of 233

What is the difference between Call and Link in cobol?

Asked by: Interview Candidate | Asked on: Dec 1st, 2005
Showing Answers 1 - 8 of 8 Answers

Answered On : Dec 9th, 2005

Call means that we no need to do ppt entry.For link we have to do ppt entry.

Login to rate this answer.

Answered On : Dec 22nd, 2005

Call canot be used when the program contains CICS statements.

Login to rate this answer.

Answered On : Dec 31st, 2005

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.

Login to rate this answer.

Answered On : Jan 16th, 2006

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.     

Yes  1 User has rated as useful.
Login to rate this answer.

Answered On : May 16th, 2006

call; control goes sub program returns back to mainprog this is used in cobolLink: this is also same bur it is used in cics

Login to rate this answer.

Answered On : Aug 27th, 2007

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.

Login to rate this answer.

Answered On : Jan 8th, 2008

View all answers by lfrank

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.

Login to rate this answer.

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.

Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Open Questions



twitter fb Linkedin GPlus RSS


Interview Question

 Ask Interview Question?


Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.