Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
subprograms using DB2 but mainprogram is not using DB2

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
Author Message
seshareddy_p

New User


Joined: 16 Jun 2005
Posts: 7

PostPosted: Fri Jun 24, 2005 11:07 am    Post subject: subprograms using DB2 but mainprogram is not using DB2
Reply with quote

Hi

This is Seshu

Any body please clarify this

"In my main program does not contain any db2 statements but my sub program contain db2 stetements"

I want to execute this, what should i do?

i mean i have to precompile both programs or not?

please clarify this

Thanks & Regards
Seshu
Back to top
View user's profile Send private message
References
lucky

New User


Joined: 01 Jun 2005
Posts: 12
Location: Croatia

PostPosted: Fri Jun 24, 2005 4:57 pm    Post subject: Re: subprograms using DB2 but mainprogram is not using DB2
Reply with quote

Hi Seshu!

Just precompile and bind the subprogram. Compile the main program as a normal program.

Main program has to be initialized with IKJEFT01, and it should then work.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1