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

Identify whether running program is static or dynamic


IBM Mainframe Forums -> ABENDS & Debugging
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
dhananjay

New User


Joined: 01 Aug 2006
Posts: 4

PostPosted: Mon Nov 20, 2006 10:50 am
Reply with quote

How will you identify whether running program is static or dynamic?
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Mon Nov 20, 2006 11:11 am
Reply with quote

Best way is to look for compiler option DYNAM/NODYNAM.

Anyway.. look how the the main program is calling SUB Program...

CALL WS-VARIABLE USING PARM-TEMP is a Dynamic Call, where you call a working storage variable and value of the sub program name is passed to the vaiable.

CALL <SUB-PRG-NAME> USING PARM-TEMP can be both static/dynamic.
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1208
Location: Bangalore,India

PostPosted: Mon Nov 20, 2006 11:14 am
Reply with quote

Hi There,

One more point by seeing the load of main program u can identify whether its calling sub program dynamically or statically.

Correction r welcome
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 -> ABENDS & Debugging

 


Similar Topics
Topic Forum Replies
No new posts Using API Gateway from CICS program CICS 0
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Using Dynamic file handler in the Fil... COBOL Programming 2
No new posts DB2 Event passed to the Application P... DB2 1
No new posts How to pass the PARM value to my targ... COBOL Programming 8
Search our Forums:

Back to Top