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
 

 

Three programs with one static and one dynamic call

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
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    Post subject: Three programs with one static and one dynamic call
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    Post subject:
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    Post subject: Re: Three programs with one static and one dynamic call
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    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts REXX - Dynamic file Creation d_sarlie CLIST & REXX 7 Tue Jun 27, 2017 7:30 pm
No new posts Dynamic output file creation in cobol... smileheal COBOL Programming 7 Thu Jun 15, 2017 10:53 pm
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm
No new posts Dynamic split of files under groups sril.krishy DFSORT/ICETOOL 4 Mon Apr 17, 2017 1:09 pm
No new posts Need help in triggering a PL1 module ... Varungv99 IMS DB/DC 0 Fri Apr 07, 2017 10:01 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us