MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Static Calls

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
sanat
Beginner


Joined: 15 Feb 2003
Posts: 11
Topics: 7
Location: chennai

PostPosted: Thu May 15, 2003 8:33 am    Post subject: Static Calls Reply with quote

When I look at the manuals regaring Dynamic calls, I get lot of advantages of using Dynamic calls. Can someone tell me what are the sadvantages of using Static calls? Which situation specifically requires that link-editing to be done statically? (It was an interview ques)

One more ques, Why DYNAM option is not allowed in CICS-COBOL compilation?
Back to top
View user's profile Send private message Yahoo Messenger
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12369
Topics: 75
Location: San Jose

PostPosted: Thu May 15, 2003 8:07 pm    Post subject: Reply with quote

Sanat,

Some of the advantages of static calls are:

  • Fewer files are needed to distribute your application because your application can be built into a single EXE file, or perhaps an EXE for your main, and a couple of DLLs for subordinate modules. This generally makes it simpler to distribute and/or upgrade your end users.

  • No risk of mixing/matching different versions of your called subroutines, because they are bundled into your main program.

  • Dynamic calls takes longer to load, since it has to search the executable libraries for each subroutine.



DYNAM/NODYNAM is a compiler option that determines when a program's subroutines are link edited.

The DYNAM compiler option must not be used by programs that are translated by the CICS translator.

Check the following links for differences between static and dynamic calls

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IGY3PG00/4.1.3.3?DT=20011203125201

[url=http://www.naspa.com/PDF/2000/0600%20TS%20PDFs/T0006010.pdf]Static VS Dynamic Linkage in cobol

Check this link for various ways of calling a subroutine in CICS

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/dfhlp314/1.2.1.7

Hope this helps...

cheers

kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Himesh
CICS Forum Moderator
CICS Forum Moderator


Joined: 20 Dec 2002
Posts: 80
Topics: 21
Location: Chicago

PostPosted: Tue May 20, 2003 2:23 pm    Post subject: Reply with quote

A good article discussing the same topic in the NASPA site (and i must add that the topic has been very well explained by Mr. Jim Moore).

Static vs. Dynamic Linkage in COBOL


regards,
Himesh
Back to top
View user's profile Send private message Yahoo Messenger
blitz2
Beginner


Joined: 23 Jan 2007
Posts: 84
Topics: 14

PostPosted: Thu Jul 12, 2007 11:37 pm    Post subject: Reply with quote

NASPA link does not work
________
EXPERT INSURANCE


Last edited by blitz2 on Thu Mar 10, 2011 5:31 pm; edited 1 time in total
Back to top
View user's profile Send private message
CICS Guy
Intermediate


Joined: 30 Apr 2007
Posts: 292
Topics: 3

PostPosted: Fri Jul 13, 2007 1:38 am    Post subject: Reply with quote

Well, it has been a loooong time......
Back to top
View user's profile Send private message
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Fri Jul 13, 2007 3:56 am    Post subject: Reply with quote

In addition to those mentioned earlier:

Advantage of Static CALLs: Can use Entry-Points, which can speed-up the processing flow (i.e. Don't have a decision Matrix to execute)

Disadvantage of Static CALLs: If a sub-routine changes and is called in many run-units, all the run-units need to be re-linked. (e.g. Primary master I/O module with Entry-Points - what ever run-units access a master file need to be relinked.)

Advantage of Dynamic CALLs:
  1. Change a sub-module
    • no need to relink CALLing module(s)
    • smaller package update for customer - can be online update
  2. If you know that a sub-module will only be CALLed once, you can CANCEL it, thus you can manage your memory resources.

Disadvantage of Dynamic CALLs: Can NOT use Entry-Points

The load process for dynamic is slower for the first CALL, because it needs to be loaded, but after the first CALL, the submodule is in memory until CANCELed. So, subsequent CALLs to non-CANCELed sub-routines are not any slower than those with static-linking.


edited by dbz to add a static advantages and dynamic disadvantage - knew there had to be some, just could not think of any.
_________________
Dick Brenholtz
American living in Varel, Germany
Back to top
View user's profile Send private message
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Sat Jul 14, 2007 1:22 am    Post subject: Reply with quote

Blitz2,

This is an active link to Jim Moore's article
_________________
Dick Brenholtz
American living in Varel, Germany
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group