Page 1 of 1

Cobol pgm to load DB2 tables

PostPosted: Thu Nov 13, 2008 12:37 pm
by sathyashreev
Hi friends,

I am new to coding & i want to write a Cobol pgm to load DB2 tables.so pls some of u can help me :( ...

Re: Cobol pgm to load DB2 tables

PostPosted: Thu Nov 13, 2008 2:44 pm
by dick scherrer
Hello and welcome to the forum,

First, you need to think thru how your code will process. Then you need to build the code.

If you work on a system that has db2 running, it would be a good idea to obtain a sample program that already works on that system to use as a model.

Once you have some model code, you need to mpdify this to do what your code should do.

People here at the forum will help you with your project. People here will not write the project for you.

Re: Cobol pgm to load DB2 tables

PostPosted: Thu Nov 13, 2008 5:20 pm
by sathyashreev
Dick,

Thanks for replying :) ..... I can understand that no one is going to code for other's ;Wat i want is like how to start code the cobol program to load db2 tables....i know SQL & the problem is i don't have any idea to work Cobol with Db2.so i want some site or some materials or some sample program,so that i'll be able to understand the things & start coding...

Re: Cobol pgm to load DB2 tables

PostPosted: Fri Nov 14, 2008 4:03 am
by dick scherrer
Hello,

This link is in the IBM COBOL programming Guide - this direct link is for db2 considerations:
http://publibz.boulder.ibm.com/cgi-bin/ ... y3pg20/3.2?

Suggest you look around in this manual.

If db2 is installed on your system, there will already be standard compile/link jcl. You will use this to compile your code. There are probably other probrams already running on the system, so i would suggest getting a copy of a program that already uses db2 on that system.