Home      Mainframe Forum      Mainfarme Tutorials      IBM Manuals      Mainframe Interview Questions      Mainframe Books      IT News     SiteMap     Downloads


     
 
MAINFRAME - TIP OF THE DAY : If you want to make your VSAM data set read-only, use INHIBIT with ALTER command. E.g. ALTER XXX.XX.DATA INHIBIT ALTER XXX.XX.INDEX INHIBIT

Google
 
Web mainframegurukul.com

Welcome to the mainframegurukul forums.

You are currently viewing our mainframe forums as a guest which gives you limited access to view most discussions, articles. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support at admin@mainframegurukul.com


static and dynamic calls

 
Post new topic   Reply to topic    mainframegurukul.com Forum Index -> COBOL
  View previous topic :: View next topic  
Author Message
mohu vellore
Member


Joined: 10 Dec 2009
Posts: 4
Location: coimbatore

PostPosted: Tue Dec 15, 2009 1:13 pm    Post subject: static and dynamic calls Reply with quote

When static calls are used and when dynamic calls are used
Back to top
View user's profile Send private message AIM Address

Natarajan
Moderator


Joined: 10 Oct 2008
Posts: 473
Location: chennai

PostPosted: Tue Dec 15, 2009 5:59 pm    Post subject: COBOL STATIC VS DYNAMIC CALLS Reply with quote

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.
_________________
Natarajan
Chennai
Back to top
View user's profile Send private message Visit poster's website
Natarajan
Moderator


Joined: 10 Oct 2008
Posts: 473
Location: chennai

PostPosted: Tue Dec 15, 2009 6:18 pm    Post subject: cobol static vs dynamic calls Reply with quote

Following dicussions will give more details on this.

http://www.mainframegurukul.com/MainframeGuru/Static-call-amp;-Dynamic-call-post3744.html

http://www.mainframegurukul.com/MainframeGuru/viewtopic.php?t=2510

http://www.mainframegurukul.com/MainframeGuru/How-can-i-tell-if-a-module-is-being-called-dynam-or-static-post3216.html
_________________
Natarajan
Chennai
Back to top
View user's profile Send private message Visit poster's website
mohu vellore
Member


Joined: 10 Dec 2009
Posts: 4
Location: coimbatore

PostPosted: Wed Dec 16, 2009 9:47 am    Post subject: Reply with quote

Thankyou Natarajan. your post is very much useful.
Back to top
View user's profile Send private message AIM Address
vaibhavad
Member


Joined: 28 Jan 2010
Posts: 2

PostPosted: Thu Jan 28, 2010 4:41 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Anuj Dhawan
Moderator


Joined: 09 Aug 2008
Posts: 949
Location: Mumbai, India

PostPosted: Fri Jan 29, 2010 2:03 pm    Post subject: Reply with quote

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
Not really - this depends on your application's requirement and dynamic calls is usually meant for smaller load modules.
_________________
Anuj


//MYWALLET EXEC PGM=SPOUSE
//SYSIN DD DSN=MYWALLET.ALL,DISP=SHR
//SYSOUT DD DUMMY
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    mainframegurukul.com Forum Index -> COBOL 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

Related topics
 Topics   Replies   Author   Views   Last Post 
No new posts Is EDI still being used 1 kevin 1313 Sun Apr 22, 2007 1:12 pm
guru View latest post
No new posts VSAM LDS used in DB2 1 Chandra Shekar G R 2950 Wed Apr 11, 2007 5:08 am
Veera View latest post
No new posts What is the command in mainframe avoid auto signout(TIMEOUT) 5 rajendra.pallala 5168 Fri Jan 26, 2007 12:48 am
seagreg View latest post
No new posts What statement can be used to send data to another MVS jjes 1 Diya 2104 Thu Jun 29, 2006 3:51 pm
Juan View latest post
No new posts why include can't be used in procedure division? 3 arrbee 2957 Tue Mar 14, 2006 5:33 pm
Guest View latest post
 



This widget requires Flash Player 9 or better








Go to top of the page
 

Online ABEND Reference ||  JCL References ||  COBOL References ||  VSAM References ||  Tutorials by Drona Series ||  SQL tutorial ||  BOOKS  ||  DB2 INTERVIEW QUESTIONS ||  COBOL INTERVIEW QUESTIONS  ||  JCL INTERVIEW QUESTIONS ||  JCL2 INTERVIEW QUESTIONS ||  VSAM INTERVIEW QUESTIONS ||  CICS INTERVIEW QUESTIONS  ||  Online tutorials ||  Online ABEND Reference ||  JCL References ||  COBOL References ||  VSAM References ||  Tutorials by Drona Series ||  SQL tutorial ||  BOOKS  ||  SiteMap  ||  Expeditor Tutorial  ||  FILE-AID Tutorial  ||  Changeman Tutorial  ||  COBOL   ||  DB2   ||  JCL  ||  CICS  ||  VSAM  ||  DB2 Interview Questions ( 110 )   || Simple JCL Tutorials  || JCL Tutorial from MainframeGurukul.com   || Simple JCL Tutorial - Chapter1 ;|| Mainframe Forum - Tutorials  || Mainframe Tutorials

Drona Educational Forums - Mainframe Cobol DB2 CICS Board
Powered by phpBB