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

What r the steps we need to follow while writing COB+DB2 prg


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Husna

New User


Joined: 02 Jun 2006
Posts: 49

PostPosted: Tue Sep 26, 2006 11:12 am
Reply with quote

Hi all,

What are the steps, we need to follow while writing COBOL+DB2 program's. Could you please let me know clearly (Step by step)?
Back to top
View user's profile Send private message
anamikak

New User


Joined: 10 May 2006
Posts: 64
Location: Singapore

PostPosted: Tue Sep 26, 2006 11:38 am
Reply with quote

go through the link:
http://publib.boulder.ibm.com/infocenter/dzichelp/v2r2/index.jsp?topic=/com.ibm.db2.doc.apsg/bjnqmstr273.htm
Back to top
View user's profile Send private message
cj10

New User


Joined: 18 Sep 2006
Posts: 9

PostPosted: Tue Sep 26, 2006 2:25 pm
Reply with quote

For a COBOL - DB2 program,

1. We need to have EXEC SQL INCLUDE SQLCA END-EXEC in working storage section to handle SQl errors & warnings.

2. Compile your program using Endevor / Compile JCL etc.

3. Bind your program as it contains DB2 statements using BIND JCL.

4. Execute your program using RUN JCL.
Back to top
View user's profile Send private message
Husna

New User


Joined: 02 Jun 2006
Posts: 49

PostPosted: Wed Sep 27, 2006 9:14 am
Reply with quote

Hi,

Thanks a lot.
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 Two input files & writing counter... DFSORT/ICETOOL 12
No new posts CA7 deleting files in steps after job... CA Products 4
No new posts AI writing DFSORT, REXX codes.. All Other Mainframe Topics 3
No new posts Writing the output file name from a p... JCL & VSAM 7
No new posts writing into VSAM indexed tabl in PL1... PL/I & Assembler 8
Search our Forums:

Back to Top