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

Three programs with one static and one dynamic call


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ganga79

New User


Joined: 16 Nov 2005
Posts: 23

PostPosted: Mon Nov 28, 2005 12:37 pm
Reply with quote

Hi,
1.
i am having 3 programs PRGA,PRGB,PRGC,
PRGA IS THE MAINPROGRAM
PRGA IS CALLING PRGB AS A DYNAMIC CALL.
PRGB IS CALLING PRGC AS A STATIC CALL.
PRGC IS HAVING DB2 STATEMENTS IF I MADE ANY CHANGES IN PRGC
WHAT PROGRAMS I HAVE TO COMPILE AND PRECOMPILE ANY ONE EXPLAIN THIS PROCESS.


2.

I AM HAVING 2 PROGRAMS PRGA,PRGB
PRGB HAVING THE DB2 STATEMENTS
IN BIND TIME WHAT STEPS I HAVE TO FOLLOW.
THANKS
GANGA
Back to top
View user's profile Send private message
Hames

New User


Joined: 03 Oct 2005
Posts: 49

PostPosted: Mon Nov 28, 2005 2:58 pm
Reply with quote

Hi Ganga,

ProgA is compiled separately.

ProgB is statically calling ProgC.

In static call the subprogram is compiled and link edited into the main program.

So progC is precompiled and compiled and it is link edited into ProgB to form a Single Load module for ProgB and ProgC.
Back to top
View user's profile Send private message
itssreehere
Warnings : 1

New User


Joined: 10 Jan 2006
Posts: 65
Location: chennai

PostPosted: Tue Jan 10, 2006 4:16 pm
Reply with quote

as per my knowledge,it depends on 2 things.
1) whether your shop is using package or plan for DB2 programs.
2)programs are called dynamically or statically

a)if your shop is using plans with out packages you need to compile/rebind all the three application programs irrespective of the type of call.

b)if you are using packages and if all the calls are dynamic, then you need to compile/rebind only PGM C. No need to bind A and B since they are not changed.

c)In the scenario in question,If you are using package and since B&C are statically compiled you need to compile/rebind B and C. Not A.

Please let me know in case of any mistaked i made.
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 -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts Using Dynamic file handler in the Fil... COBOL Programming 2
No new posts Fetch data from programs execute (dat... DB2 3
No new posts Passing Parameters to Programs Invoke... PL/I & Assembler 5
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