IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

subprograms using DB2 but mainprogram is not using DB2


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts To call 2 subprograms with different ... DB2 1
No new posts Calling subprogram with out mainprogram. COBOL Programming 4
No new posts how can i get the name of a mainprogr... COBOL Programming 14
No new posts error handling in Cobol db2 program -... COBOL Programming 8
No new posts Reading a subprogram file in mainprogram Mainframe Interview Questions 3
Search our Forums:

Back to Top