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
 

 

Find static vs dynamic call

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

New User


Joined: 10 Dec 2005
Posts: 11
Location: b'lore

PostPosted: Mon Mar 27, 2006 5:05 pm    Post subject: Find static vs dynamic call
Reply with quote

hi all,
is it possible to know by seeing the cobol program itself whether it is using a static call or dynamic call


thanks
Back to top
View user's profile Send private message

kousalya26

New User


Joined: 06 Jul 2005
Posts: 21
Location: chennai

PostPosted: Mon Mar 27, 2006 5:38 pm    Post subject: Re: static & dynamic call
Reply with quote

Hi nandini,

Quote:
is it possible to know by seeing the cobol program itself whether it is using a static call or dynamic call


In the cobol program, if the call statement is like
CALL "literal" USING arguments
eg. CALL "PROGA" USING arguments
its a static call.

If the call statement is like
CALL variable USING arguments
eg. WORKING STORAGE SECTION.
01 PROG-A pic x(07) value 'PROGA'.
CALL PROG-A using arguments
its a dynamic call.

Well there are some discussion threads on this one of which is http://ibmmainframes.com/viewtopic.php?t=91&highlight=static+dynamic
Back to top
View user's profile Send private message
ap_mainframes

Active User


Joined: 29 Dec 2005
Posts: 181
Location: Canada

PostPosted: Tue Mar 28, 2006 6:37 pm    Post subject: Re: static & dynamic call
Reply with quote

Yes..
Just in case anybody needs a document.
Here it is.

ap_mainframes
Back to top
View user's profile Send private message
tushar_zibbu

New User


Joined: 10 Jan 2006
Posts: 3

PostPosted: Fri Mar 31, 2006 2:11 am    Post subject: static & dynamic call
Reply with quote

Yes Nandini, icon_lol.gif I do agree with him. This is the simplest way to identify a static and a dynamic call.
To add more to it, In a static call 1 loadlib or one can say 1 exe file is created whereas it is 2 in case of a dynamic call icon_biggrin.gif
Back to top
View user's profile Send private message
Visvanathan

New User


Joined: 25 Apr 2006
Posts: 5
Location: India

PostPosted: Wed Apr 26, 2006 11:12 am    Post subject: Re: static & dynamic call
Reply with quote

To add to this query..

1) My program does a STATIC call,while I compile, I do a DYNAM option and viceversa. I mean we contradict the calls at coding stage and during compilation stage. Is it feasible? If so how ?

thanks,
Visva.
Back to top
View user's profile Send private message
mfjude

New User


Joined: 09 Jan 2006
Posts: 20

PostPosted: Wed Apr 26, 2006 11:26 am    Post subject:
Reply with quote

You can't be sure about the nature of call from the program only.Its the complier option which ultimately decides what kind of call to make.
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 DB2: Dynamic allocation of DB2.D... BHAS CLIST & REXX 3 Mon Dec 19, 2016 8:26 pm
No new posts find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm
No new posts How to find the first monday of the w... abdulrafi COBOL Programming 10 Fri Nov 25, 2016 3:24 pm
No new posts Find out a active PGM jpsager JCL & VSAM 10 Fri Oct 07, 2016 4:32 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