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

Find static vs dynamic call


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
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
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
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
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
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts To find whether record count are true... DFSORT/ICETOOL 6
No new posts Using Dynamic file handler in the Fil... COBOL Programming 2
No new posts Find the size of a PS file before rea... COBOL Programming 13
No new posts Error while running web tool kit REXX... CLIST & REXX 5
No new posts JCL Dynamic System Symbols JCL & VSAM 3
Search our Forums:

Back to Top