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
 

 

Confusion with static call and dynamic call

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Confusion with static call and dynamic call
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    Post subject:
Reply with quote

see if this link can release you from some confusion:
http://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    Post subject: Re: REG: Calls
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Dynamic array request/response contai... Suja.Sai CICS 2 Tue Jan 24, 2017 11:37 am
No new posts REXX DB2: Dynamic allocation of DB2.D... BHAS CLIST & REXX 3 Mon Dec 19, 2016 8:26 pm
No new posts Cobol EZASOKET call to SETSOCKOPT fails Andi1982 COBOL Programming 6 Thu Oct 06, 2016 7:12 pm
No new posts Strange EXEC function call in z/VM Willy Jensen CLIST & REXX 3 Wed Oct 05, 2016 2:07 pm
No new posts COBOL DB2 - CALL statement - high CPU... TS70363 DB2 15 Sun Sep 11, 2016 6:07 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us