Page 1 of 1

Difference between Static Call and Dynamic Call

PostPosted: Fri Aug 21, 2009 3:23 pm
by satish.ms10
Hi,

I have one question in PL/I. How can we defferentiate Static Call and Dynamic Call in PL/I?

How they are going to function? Pls provide detail explanation.

Thanks!
Satish

Re: Difference between Static Call and Dynamic Call

PostPosted: Sat Aug 22, 2009 12:53 am
by dick scherrer
Hello and welcome to the forum,

Static calls are resolved during the link-edit. Dynamical calls are resolved at run time.

How they are going to function?
Typically, identically. . . What detail are you looking for?

Re: Difference between Static Call and Dynamic Call

PostPosted: Wed Aug 26, 2009 12:15 pm
by satish.ms10
Hi Dick,

How can we identify a CALL is static or dynamic in PL/I?

or

How to differentiate a CALl is static or dynamic by seeing code?

Re: Difference between Static Call and Dynamic Call

PostPosted: Fri Sep 04, 2009 12:29 am
by dick scherrer
Hello,

How to differentiate a CALl is static or dynamic by seeing code?
COBOL source that calls a "literal" value is static. COBOL source that calls a variable-name value is dynamic. There is also the dynam/nodynam compiler option.

Unfortunately, i don't "speak" pl/i. . .

Heres a link to the pl/i documentation for "Dynamic loading of an external procedure":
http://publibz.boulder.ibm.com/cgi-bin/ ... lr60/6.4.7

The open book near the top-left is the table of contents. Suggest you bookmark this ;)

Re: Difference between Static Call and Dynamic Call

PostPosted: Sun Sep 13, 2009 8:42 pm
by prino
satish.ms10 wrote:How to differentiate a CALl is static or dynamic by seeing code?


If there is a
FETCH ABCDEF;
present, the call to ABCDEF is dynamic in all other cases it's static.