Difference between Static Call and Dynamic Call



IBM's cross-platform compiler PL/I for MVS, VM & VSE, OS/390 and Enterprise PL/I for z/OS

Difference between Static Call and Dynamic Call

Postby satish.ms10 » Fri Aug 21, 2009 3:23 pm

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
_______________
Thanks Alot.
Sati
satish.ms10
 
Posts: 7
Joined: Thu Aug 13, 2009 12:38 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Difference between Static Call and Dynamic Call

Postby dick scherrer » Sat Aug 22, 2009 12:53 am

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?
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6269
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: Difference between Static Call and Dynamic Call

Postby satish.ms10 » Wed Aug 26, 2009 12:15 pm

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?
_______________
Thanks Alot.
Sati
satish.ms10
 
Posts: 7
Joined: Thu Aug 13, 2009 12:38 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Difference between Static Call and Dynamic Call

Postby dick scherrer » Fri Sep 04, 2009 12:29 am

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 ;)
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6269
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: Difference between Static Call and Dynamic Call

Postby prino » Sun Sep 13, 2009 8:42 pm

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.
Robert AH Prins
robert.ah.prins @ the.17+Gb.Google thingy
User avatar
prino
 
Posts: 612
Joined: Wed Mar 11, 2009 12:22 am
Location: Vilnius, Lithuania
Has thanked: 3 times
Been thanked: 27 times


Return to PL/I

 


  • Related topics
    Replies
    Views
    Last post