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
 
subprograms using DB2 but mainprogram is not using DB2

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
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

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
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 To call 2 subprograms with different ... Khwairakpam Raju Singh DB2 1 Fri Jul 19, 2013 4:34 pm
No new posts Calling subprogram with out mainprogram. sriraj1122 COBOL Programming 4 Sat Sep 18, 2010 3:05 pm
No new posts how can i get the name of a mainprogr... ajaehnert COBOL Programming 14 Tue Mar 16, 2010 9:17 pm
No new posts error handling in Cobol db2 program -... sm_2009 COBOL Programming 8 Mon May 25, 2009 10:27 am
No new posts Reading a subprogram file in mainprogram Nsuma Mainframe Interview Questions 3 Sat Sep 20, 2008 3:50 pm

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