MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Main program calling suprogram having DB2 tables

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
modak
Beginner


Joined: 09 Apr 2004
Posts: 14
Topics: 3

PostPosted: Mon May 21, 2007 5:27 am    Post subject: Main program calling suprogram having DB2 tables Reply with quote

My program doesnt have any DB2 code but it calls a program that needs DB2 tables. Do i need to use IKJEFT01 to call my main program and passing the name of the plan that subprogram OR simply passing the loadlibs of both the programs in JCL with EXEC PGM=main-program would do.
Back to top
View user's profile Send private message
CICS Guy
Intermediate


Joined: 30 Apr 2007
Posts: 292
Topics: 3

PostPosted: Mon May 21, 2007 8:48 am    Post subject: Re: Main program calling suprogram having DB2 tables Reply with quote

modak wrote:
simply passing the loadlibs of both the programs in JCL with EXEC PGM=main-program would do.
That's the way I usually do it.....
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12372
Topics: 75
Location: San Jose

PostPosted: Mon May 21, 2007 9:45 am    Post subject: Reply with quote

modak,

You will have a package for your subprogram and plan it to the main program and you should invoke it via IKJEFT01.

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group