IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Confusion with static call and dynamic call


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
lapiz

New User


Joined: 22 Nov 2005
Posts: 1

PostPosted: Tue Nov 22, 2005 5:20 pm
Reply with quote

still i have little confusion with static call and dynamic call,plz let me know in detail

mathu
Back to top
View user's profile Send private message
kanak

Moderator


Joined: 12 Mar 2005
Posts: 252
Location: India

PostPosted: Tue Nov 22, 2005 5:30 pm
Reply with quote

see if this link can release you from some confusion:
www.ibmmainframes.com/viewtopic.php?t=1680&highlight=
Back to top
View user's profile Send private message
sivakumar. K. M

New User


Joined: 22 Nov 2005
Posts: 3

PostPosted: Tue Nov 22, 2005 5:47 pm
Reply with quote

Hi,

I hope it will clarify your doubt.

static call

Sub and main program refer to same LOAD module is called static call.

Ex. if you do link the main program after compiled, you have to include sub program object module as well in link. So it will create the same LOAD module for both main and sub program

In cobol program, the static call looks as bellow.

CALL "sub-program-name" USING var1, var2......


Dynamic call

sub and main program refer to diffrent LOAD module is called dynamicc call.

Ex. You have to do link the main and sub program seprate after compiled. So it will create the diffrent LOAD module for both main and sub program.


In cobol program, the dynamic call looks as bellow.

MOVE 'sub-program-variable' to sub-program-name

CALL sub-program-name USING var1, var2...

Thanks,
Siva
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Using Dynamic file handler in the Fil... COBOL Programming 2
No new posts Error while running web tool kit REXX... CLIST & REXX 5
No new posts JCL Dynamic System Symbols JCL & VSAM 3
No new posts Call program, directly from panel CLIST & REXX 9
No new posts Synctool-dynamic split job for varyin... JCL & VSAM 7
Search our Forums:

Back to Top