Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
pgm A calling Pgm B .Pgm B has some Db2 program

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: pgm A calling Pgm B .Pgm B has some Db2 program
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: 6970
Location: porcelain throne

PostPosted: Thu Jul 19, 2012 1:35 pm    Post subject:
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: 1250
Location: Israel

PostPosted: Thu Jul 19, 2012 2:25 pm    Post subject: Reply to: pgm A calling Pgm B .Pgm B has some Db2 program
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    Post subject: thanks marso
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    Post subject:
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    Post subject: thanks
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    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts The same REXX program doesnt work for... jackzhang75 CLIST & REXX 5 Wed Dec 06, 2017 2:51 am
No new posts Calling IKJEFT01 program from Rexx upendrasri CLIST & REXX 8 Wed Nov 15, 2017 4:27 pm
No new posts How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts Accessing CICS tran with map from JCL... navdeepaggarwal CICS 5 Tue Oct 03, 2017 6:15 pm
No new posts Calling CLIST through job and REXX Sahasra K CLIST & REXX 19 Tue Aug 01, 2017 10:25 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us