Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Difference between Static Call and Dynamic Call

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
View previous topic :: :: View next topic  
Author Message
debasish_barik

New User


Joined: 24 Jun 2006
Posts: 4

PostPosted: Mon Aug 13, 2007 4:27 pm    Post subject: Difference between Static Call and Dynamic Call
Reply with quote

Can anyone explain me in a bit detail - the difference between static call and dynamic call.
Back to top
View user's profile Send private message

William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3158
Location: Tucson AZ

PostPosted: Mon Aug 13, 2007 4:35 pm    Post subject:
Reply with quote

Try pasting your topic title in the search argument........
For instance:
Difference B'ween STATIC & DYNAMIC
Back to top
View user's profile Send private message
uma rao
Currently Banned

New User


Joined: 20 Oct 2007
Posts: 8
Location: delhi

PostPosted: Mon Oct 22, 2007 4:23 pm    Post subject: Reply to: Difference between Static Call and Dynamic Call
Reply with quote

hi, the difference between static call and dynamic call is : if you changed the subprogram you need to compile both main program and subprogram when it comes to dynamic call you need not compile both . you can compile only subprogram wher you had made changes.
Back to top
View user's profile Send private message
sindhuvava
Currently Banned

New User


Joined: 05 Dec 2006
Posts: 17
Location: Chennai

PostPosted: Thu Oct 25, 2007 10:21 am    Post subject:
Reply with quote

This may help u:

STATIC Call:

1) Identified by Call literal.
Ex: CALL ‘PGM1’.

2) Default Compiler option is NODYNAM and so all the literal calls are considered as static calls

3) If the subprogram undergoes change, sub program and main program need to be recompiled

4) Sub modules are link edited with main module.

5) Size of load module will be large

6) Fast,Less flexible.

7) Sub-program will not be in initial stage the next time it is called unless you explicitly use INITIAL or you do a CANCEL after each call.

DYNAMIC CALL

1) Identified by Call variable and the variable should be populated at run time.
01 WS-PGM PIC X(08).
Move ‘PGM1’ to WS-PGM
CALL WS-PGM

2) If you want convert the literal calls into DYNAMIC, the program should be compiled with DYNAM option.
By default, call variables and any un-resolved calls are considered as dynamic

3) If the subprogram undergoes change, recompilation of subprogram is enough.

4) Sub modules are picked up during run time from the load library.

5) Size of load module will be less.

6) Slow compared to Static call.
More flexible.

7) Program will be in initial state every time it is called.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts REXX - Dynamic file Creation d_sarlie CLIST & REXX 7 Tue Jun 27, 2017 7:30 pm
No new posts Dynamic output file creation in cobol... smileheal COBOL Programming 7 Thu Jun 15, 2017 10:53 pm
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm
No new posts Dynamic split of files under groups sril.krishy DFSORT/ICETOOL 4 Mon Apr 17, 2017 1:09 pm
No new posts Need help in triggering a PL1 module ... Varungv99 IMS DB/DC 0 Fri Apr 07, 2017 10:01 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us