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
 

 

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: 6966
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: 1226
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 SQL query not working in Cobol program. CuriousMainframer COBOL Programming 14 Wed Feb 22, 2017 5:56 pm
No new posts Calling procedure with multiple entri... steve-myers PL/I & Assembler 5 Fri Jan 27, 2017 3:33 pm
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts Need Suggestion on COBOL program vickey_dw COBOL Programming 5 Thu Jan 05, 2017 10:55 pm
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm


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