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

Need the procedure to compile and run a DB2 Program


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
HARIBHARAT

New User


Joined: 05 Jul 2006
Posts: 65
Location: pune

PostPosted: Sat Sep 09, 2006 1:44 pm
Reply with quote

Hi

I have subprogram cobol-sql code, main program only cobol code.

how to compile the program means sub program ( pre comple,comile, bind),we need to do same thing main program or not, if doing main program why it need without sql code. then how to run the program

suresh
Back to top
View user's profile Send private message
kgumraj

Active User


Joined: 01 May 2006
Posts: 151
Location: Hyderabad

PostPosted: Sat Sep 09, 2006 3:18 pm
Reply with quote

if your mainprogram has no SQL's and subprogram has it, you need not compile the mainprogam with precompile ( There is no harm to do the same too)

Cause, In binding you will get an error, if you precompile and bind the proram with no SQL's Stating no SQL statements found in DBRM

In JCl you run the program as usual, but remeber to bind the subprogram
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 -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts Using API Gateway from CICS program CICS 0
No new posts Compile rexx code with jcl CLIST & REXX 6
No new posts C Compile time time stamps Java & MQSeries 10
No new posts DB2 Event passed to the Application P... DB2 1
No new posts How to pass the PARM value to my targ... COBOL Programming 8
Search our Forums:

Back to Top