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

pgm A calling Pgm B .Pgm B has some Db2 program


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
teja goud

New User


Joined: 28 Nov 2011
Posts: 14
Location: india

PostPosted: Thu Jul 19, 2012 12:23 pm
Reply with quote

hi

pgm A calling Pgm B .Pgm B has some Db2 program,
how to compilation and execution process

please explain the above process


thanks in advance
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Jul 19, 2012 1:35 pm
Reply with quote

this kind of activity is rather site dependent.

you need to talk with your co-workers or your manager.

if this is just a generic question and you are not actually working,
you can either post the student/fresher forum
or read the db2 application programming guide for whatever version of db2 you wish
(buttons/links at top of page - IBM Manuals)
There really is no need to spend time/space in the forum to paraphrase what is already well organized and prepared by the manuals.
if you have questions over specifics,
post your question and one of the many experienced members will provide an answer.
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1353
Location: Israel

PostPosted: Thu Jul 19, 2012 2:25 pm
Reply with quote

in a nutshell:
Regular program A is compiled as a regular program,
DB2 program B is compiled as a DB2 program.
Program A is executed as a DB2 program.

Details about the "how to" are site dependant.
Back to top
View user's profile Send private message
teja goud

New User


Joined: 28 Nov 2011
Posts: 14
Location: india

PostPosted: Fri Jul 20, 2012 11:28 am
Reply with quote

hi,
while execution of program can i get timestamp mismatch error if i excute like this, bcoz program B load module and DBRM timestamp is same , if it is static call while executing program A , i need to give B load module also ...

Please explain clearly , am little bit confusion on this process


thanks in advance
Back to top
View user's profile Send private message
gylbharat

Active Member


Joined: 31 Jul 2009
Posts: 565
Location: Bangalore

PostPosted: Fri Jul 20, 2012 1:07 pm
Reply with quote

Steps:

1.Compile Program B as DB2 program and Bind it into a package/Plan
2. Compile Program A as a normal cobol program.
3. Run the Program A using IKJEFT01 --
Code:
DSN SYSTEM (XXXX)
    RUN PROG (PROGRAMA)         PLAN (PLANA)
    END
Back to top
View user's profile Send private message
teja goud

New User


Joined: 28 Nov 2011
Posts: 14
Location: india

PostPosted: Fri Jul 20, 2012 11:00 pm
Reply with quote

thanks for your replay
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 -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Using API Gateway from CICS program CICS 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts Calling Java method from batch COBOL ... COBOL Programming 5
No new posts Calling an Open C library function in... CICS 1
No new posts DB2 Event passed to the Application P... DB2 1
Search our Forums:

Back to Top