Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Difference b\w Static and Dynamic Call.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
Kailash Chandra

New User


Joined: 06 Dec 2005
Posts: 2

PostPosted: Thu Dec 15, 2005 2:24 pm    Post subject: Difference b\w Static and Dynamic Call.
Reply with quote

Can any one tell me what is the difference between Static and Dynamic call with example? Please elaborate in simple terms.
Back to top
View user's profile Send private message

iknow

Active User


Joined: 22 Aug 2005
Posts: 413
Location: Colarado, US

PostPosted: Thu Dec 15, 2005 2:25 pm    Post subject: Re: Difference b\w Static and Dynamic Call.
Reply with quote

Hi Kailash,

Please search our forum. I think it is a repeated one.
Back to top
View user's profile Send private message
iknow

Active User


Joined: 22 Aug 2005
Posts: 413
Location: Colarado, US

PostPosted: Thu Dec 15, 2005 2:41 pm    Post subject: Re: Difference b\w Static and Dynamic Call.
Reply with quote

Hi,

Below listed are the differences between Static and Dynamic Call.
Check out the answers.

STATIC CALL

Quote:
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
7)Less flexible.
8)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
Quote:

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.
3)By default, call variables and any un-resolved calls are considered as dynamic.
4)If the subprogram undergoes change, recompilation of subprogram is enough.
5)Sub modules are picked up during run time from the load library.
6)Size of load module will be less.
7)Slow compared to Static call.
8)More flexible.
9)Program will be in initial state every time it is called.



Hope this helps.
Back to top
View user's profile Send private message
friend_prasad

New User


Joined: 06 Jan 2006
Posts: 12

PostPosted: Mon Jan 09, 2006 5:11 pm    Post subject: Re: Difference b\w Static and Dynamic Call.
Reply with quote

Kailash Chandra wrote:
Can any one tell me what is the difference between Static and Dynamic call with example? Please elaborate in simple terms.
in static call calling prog and called prog are physically linked together. u cannot delete one.u have to submit prog again for compilation
in dynamic call calling prog and called prog are not physically linked together. There are 2 seperate load module .if one can be deleted no problem is there u can only compile one prog linke edit it and sub it
prasad
Back to top
View user's profile Send private message
friend_prasad

New User


Joined: 06 Jan 2006
Posts: 12

PostPosted: Mon Jan 09, 2006 5:13 pm    Post subject:
Reply with quote

are u satisfied
Back to top
View user's profile Send private message
umeshkmrsh

New User


Joined: 21 Sep 2005
Posts: 79
Location: India

PostPosted: Mon Jan 09, 2006 6:01 pm    Post subject:
Reply with quote

Thanks "iknow" for consolidated listing.
Back to top
View user's profile Send private message
Kailash Chandra

New User


Joined: 06 Dec 2005
Posts: 2

PostPosted: Tue Jan 10, 2006 4:59 pm    Post subject: Re: Difference b\w Static and Dynamic Call.
Reply with quote

Differences are clear. Thanx to both of you, iknow and prasad.
Back to top
View user's profile Send private message
mainframe_sameer

New User


Joined: 12 Mar 2006
Posts: 2

PostPosted: Tue Mar 14, 2006 12:46 pm    Post subject: thanks
Reply with quote

thank 2 u all . it really helps me
Back to top
View user's profile Send private message
sanath_m

New User


Joined: 10 Mar 2006
Posts: 9

PostPosted: Wed Mar 15, 2006 2:31 pm    Post subject:
Reply with quote

Thans a lot....for giving information.....
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 -> JCL & VSAM 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
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us