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

To Find dynamic or static call from its load module


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
maverick05

New User


Joined: 14 Apr 2005
Posts: 54
Location: Earth

PostPosted: Sun May 15, 2005 9:33 pm
Reply with quote

Hi,

How to find whether a module is called dynamically or statically from its load module.

I don't have the source with me. I want to know programs which are being called dynamically by this load module.

Thanks
Venkat
Back to top
View user's profile Send private message
priya

Moderator


Joined: 24 Jul 2003
Posts: 568
Location: Bangalore

PostPosted: Sun May 15, 2005 11:33 pm
Reply with quote

Quote:
I want to know programs which are being called dynamically by this load module.


Check the run time messages.
Back to top
View user's profile Send private message
maverick05

New User


Joined: 14 Apr 2005
Posts: 54
Location: Earth

PostPosted: Sun May 15, 2005 11:37 pm
Reply with quote

Nope,i didn't find any static ,dynamic related messages
Back to top
View user's profile Send private message
priya

Moderator


Joined: 24 Jul 2003
Posts: 568
Location: Bangalore

PostPosted: Sun May 15, 2005 11:47 pm
Reply with quote

Run without DYNAM option. If No error, then Static Call. Or Dyamic Call.
Back to top
View user's profile Send private message
notonly4u

New User


Joined: 26 Apr 2005
Posts: 87
Location: Hyderabad

PostPosted: Mon May 16, 2005 10:41 am
Reply with quote

Dear maverick05,

If it is static call, The load module of the called program will also be stamped together with the calling program's Load Module. This means if we are making changes to the sub program we have to compile both the calling and called pgms.

Whereas in dynamic call the load modules will be seperate and if any change to the sub pgm, then only the subroutine needs recompilation since it is going to called dynamically and the load modules are separate.

Hope this gives yu some idea. If yu have any queries...please let me know.

Regards
Tanden
Back to top
View user's profile Send private message
nave

New User


Joined: 16 May 2005
Posts: 10
Location: bangalore,india

PostPosted: Mon May 16, 2005 5:57 pm
Reply with quote

me too agree with the above answer,that is 'Run without DYNAM option. If No error, then Static Call. else Dyamic Call
Back to top
View user's profile Send private message
David P

Active User


Joined: 11 Apr 2005
Posts: 106
Location: Cincinnati Ohio

PostPosted: Tue May 17, 2005 9:48 am
Reply with quote

Hi,
Is there any DYNAM option while running, I believe its there while compiling the source. I am not sure about the DYNAMIC calls but the
statically called modules can be seen embeded in the load module of
calling program.

regards,
David.
Back to top
View user's profile Send private message
swaran_msc

New User


Joined: 19 May 2005
Posts: 5
Location: Bangalore

PostPosted: Thu May 19, 2005 12:50 pm
Reply with quote

We could identify Call type using Compiler option Dynam or Nodynam.

Even If you specify Nodynam in Compiler Option it will be taken as Dynam only.

Corrections are Welcome...
Back to top
View user's profile Send private message
subhasis_50

Moderator


Joined: 09 Mar 2005
Posts: 363
Location: Earth

PostPosted: Thu May 19, 2005 4:33 pm
Reply with quote

Hi,
The DYNAM or NODYNAM OPTIONS are getting used in the time of compilation time. Those options are not used in run time.
If you have the load module, open that member in INSYNC. In that you will found the name of the prog which are statically linked. The members which are statically linked present in the main load module. That is it is already loaded in the main memory during the time of execution.

For Dynamically load module, u can not see the name of the programs in the main load module. Those are taken into consideration during the execution time. That time those are loaded in the main memory.

For standalone prog NODYNAM and DYNAM have the same meaning.
Back to top
View user's profile Send private message
samchris

New User


Joined: 31 May 2005
Posts: 26
Location: pune

PostPosted: Tue May 31, 2005 6:20 pm
Reply with quote

by checking the load module in the hewl.if it's static it contain some value & if it is dynamic it won't contain any value.
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 Load new table with Old unload - DB2 DB2 6
No new posts To find whether record count are true... DFSORT/ICETOOL 6
No new posts How to load to DB2 with column level ... DB2 6
No new posts Using Dynamic file handler in the Fil... COBOL Programming 2
No new posts REASON 00D70014 in load utility DB2 6
Search our Forums:

Back to Top