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 Is the explanation correct? XRST,CHKP Martylin IMS DB/DC 1 Wed Mar 15, 2017 9:26 am
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
This topic is locked: you cannot edit posts or make replies. Get correct date and time when curren... balaji81_k DB2 24 Fri Oct 14, 2016 10:40 pm
No new posts Cobol EZASOKET call to SETSOCKOPT fails Andi1982 COBOL Programming 6 Thu Oct 06, 2016 7:12 pm


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