static and dynamic calls
Moderators: dbzTHEdinosauer, Moderator Group
-
- Member
- Posts: 4
- Joined: Thu Dec 10, 2009 11:25 am
- Location: coimbatore
static and dynamic calls
When static calls are used and when dynamic calls are used
COBOL STATIC VS DYNAMIC CALLS
COBOL - static call vs dynamic call.
static call -
If we use static call, load module of sub program will be added to main program/
When program execution started, main program and sub program both will be loaded into memory.
If there is a change to subprogram.
All the programs which are calling this sub program has to re-compile.
dynamic call -
If mainframe program uses dynamic call, subprogram will be loaded into memory
when call statement executed.
If there are many programs calling one sub program. if there are any changes to subprogram, wont impact calling programs. i.e, we dont required to re-compile.
---- Cases
1. If sub program needs to change frequently, better go for dynamic call.
so that calling cobol programs dont required to re-compile, every time cobol
subprogram modified.
2. If same program calling the sub program multiple times. Performance wise, better use static call. In this case, if we use dynamic call, it will load the program every time you call that program. so, in this case better you static call.
static call -
If we use static call, load module of sub program will be added to main program/
When program execution started, main program and sub program both will be loaded into memory.
If there is a change to subprogram.
All the programs which are calling this sub program has to re-compile.
dynamic call -
If mainframe program uses dynamic call, subprogram will be loaded into memory
when call statement executed.
If there are many programs calling one sub program. if there are any changes to subprogram, wont impact calling programs. i.e, we dont required to re-compile.
---- Cases
1. If sub program needs to change frequently, better go for dynamic call.
so that calling cobol programs dont required to re-compile, every time cobol
subprogram modified.
2. If same program calling the sub program multiple times. Performance wise, better use static call. In this case, if we use dynamic call, it will load the program every time you call that program. so, in this case better you static call.
Natarajan
Chennai
Chennai
cobol static vs dynamic calls
Following dicussions will give more details on this.
http://www.mainframegurukul.com/Mainfra ... t3744.html
http://www.mainframegurukul.com/Mainfra ... php?t=2510
http://www.mainframegurukul.com/Mainfra ... t3216.html
http://www.mainframegurukul.com/Mainfra ... t3744.html
http://www.mainframegurukul.com/Mainfra ... php?t=2510
http://www.mainframegurukul.com/Mainfra ... t3216.html
Natarajan
Chennai
Chennai
-
- Member
- Posts: 4
- Joined: Thu Dec 10, 2009 11:25 am
- Location: coimbatore
Statics calls are fast as compared to dynamic calls. Choose such calls for modules with small sizes(i.e. small codes) . Static calls with bigger size can cause space error. this can be solved by REGION parameter in JOB/STEP
Dynamic calls use less memory and are slower. But are useful for programs which require frequent modifications.
Example if i have a driver job which starts the billing of the system... i choose dynamic calls
If i have a utility to extract something, i use static calls.
Dynamic calls use less memory and are slower. But are useful for programs which require frequent modifications.
Example if i have a driver job which starts the billing of the system... i choose dynamic calls
If i have a utility to extract something, i use static calls.
-
- Moderator
- Posts: 1625
- Joined: Sat Aug 09, 2008 9:02 am
- Location: Mumbai, India
Not really - this depends on your application's requirement and dynamic calls is usually meant for smaller load modules.vaibhavad wrote:Statics calls are fast as compared to dynamic calls. Choose such calls for modules with small sizes(i.e. small codes) . Static calls with bigger size can cause space error. this can be solved by REGION parameter in JOB/STEP
Regards,
Anuj
Anuj
FREE TUTORIALS
Tutorials
Free tutorials from mainframegurukul
- JCL Tutorial
Covers all important JCL concepts. - Cobol Tutorial
This tutorials covers all Cobol Topics from STRING to COMP-3. - DB2 Tutorial
DB2 Tutorial focuses on DB2 COBOL Programming. - SORT Tutorial
This Tutorial covers all important aspects of DFSORT with examples - CICS Tutorial
This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions
- Cobol Interview Questions
50+ Interview Questions - JCL Interview Questions
50+ Interview Questions - DB2 Interview Questions
100+ Interview Questions - CICS Interview Questions
70+ Interview Questions - VSAM Interview Questions
27 Interview Questions
Other References
Mainframe Tools and others
- XPEDITER Reference
Explains how we can debug a program - FILEAID Reference
Explains how to browse , edit and delete datasets - Change Man Reference
Quick Start tutorial on Changeman - Abend Reference
Important Abend codes explained - FaceBook Page
MainframeGurukul FaceBook Page - LinkedIn Page
MainframeGurkul Linkedin Page