Difference Between Static and Dynamic CALL
Posted:
Thu May 28, 2009 2:58 pm
by kylashrao
Hi All,
I am Kailash Rao new to this forum,
this is the commonly asked Question that i need Help
What is the Difference between Static and Dynamic Call in Cobol ? with an example
Kindly help me for this
Thanks
Kailash Rao
Re: Difference Between Static and Dynamic CALL
Posted:
Fri May 29, 2009 1:47 am
by dick scherrer
Hello and welcome to the forum,
The difference is whether the call is resolved by the link editor or if the call is resolved at run-time.
CALL 'THEMOD' USING FLD-1, FLD-2 is the way a static call is usually coded
CALL THEMOD USING FLD-1, FLD-2 is the way a dynamic call is usually coded
More info is available in the COBOL Language Reference:
http://publibz.boulder.ibm.com/cgi-bin/ ... 0/CONTENTS?
Re: Difference Between Static and Dynamic CALL
Posted:
Sun May 31, 2009 10:03 am
by Anuj Dhawan
Static Call:- It is a call to a program which will be link edited with the main program.
Dynamic call:-It is an independent program which is link edited separately. The main program just call this program
To be more specific:
If compiled as NODYNAM:
CALL 'literal' is a static call
CALL WS-label is a dynamic call
If compiled as DYNAM:
CALL 'literal' is a dynamic call
CALL WS-label is a dynamic call