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
 

 

Is my concept correct wrt static and dynamic call.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
arindambanerjee

New User


Joined: 30 Jun 2007
Posts: 39
Location: India

PostPosted: Sat Nov 29, 2008 11:00 pm    Post subject: Is my concept correct wrt static and dynamic call.
Reply with quote

I am bit confused with my concept regarding static and Dynamic call in COBOL. I am describing my concept below. Please let me know if it is correct or should it be other way round.

Static Call:- It is a call to a program which will be link edited with the main program.
Dynamic call:-It is an independent program which is link edited separately. The main program just call this program[/u]
Back to top
View user's profile Send private message

mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Sat Nov 29, 2008 11:14 pm    Post subject:
Reply with quote

Hi Arin,

Your concept is correct. The info below may be of some interest.

***********************************************************************
Static vs Dynamic CALLs
***********************************************************************
If compiled as NODYNAM:
CALL 'literal' is a static call
CALL WS-label is a dynamic call

If compiled as DYNAM:
CALL 'literal' is a dynamic call
CALL WS-label is a dynamic call

At execution time, to tell from the CALLee, if the CALLer was static:
Go 1 save area back
At execution time, to tell from the CALLee, if the CALLer was dynamic:
Go 2 save areas back
Back to top
View user's profile Send private message
arindambanerjee

New User


Joined: 30 Jun 2007
Posts: 39
Location: India

PostPosted: Sat Nov 29, 2008 11:27 pm    Post subject: Reply to: Is my concept correct wrt static and dynamic call.
Reply with quote

Thank you icon_biggrin.gif
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2502
Location: Atlanta, Georgia, USA

PostPosted: Sun Nov 30, 2008 12:54 am    Post subject: Re: Is my concept correct wrt static and dynamic call.
Reply with quote

Beware of Static Calls in CICS as the Callee's WS is similar to program-storage in Assembler and is therefore, non-reentrant (part of the load module) and susceptible to nearly simultaneously usage and unpredictable results. If the Caller is defined as THREADSAFE and perform's a Static Call then this will fail within seconds of usage.

To deal with this, have the reentrant/serially reusable Caller pass its own storage to the Callee as a parameter and this should all but eliminate any issue with concurrent tasks attempting to use the Callee's same Static WS.

Regards,

Bill
Back to top
View user's profile Send private message
hikaps14

Active User


Joined: 02 Sep 2005
Posts: 189
Location: Noida

PostPosted: Mon Dec 01, 2008 1:04 pm    Post subject: Reply to: Is my concept correct wrt static and dynamic call.
Reply with quote

Hi,

Here is a link which gives detailed info on these calls.

All about static and dynamic call

Hope this helps.
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 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