473,385 Members | 1,655 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Cobol Stored Procedures in DB2 on Windows

If this is not the appropriate forum, could someone please let me know?
Thanks.

I'm part of a very heterogeneous distributed development team, and a
clash of cultures is causing some very significant problems. It's
taking us far too long to get the people with the proper permissions to
compile and bind COBOL stored procedures on our MVS DB2 test and
deployment environments. The bureaucratic hurdles to getting these
permissions ourselves have for months been insurmountable, and I
recently had what I hope is a brainstorm. (Maybe it's just a
brain-tropical depression, though. :-) )

I would like to duplicate our database on a local Windows version of
DB2, and compile and bind the COBOL to this instance. Then the
bureacrats can take as long as they like about the deployment
environment, and we can still do our development.

I've found some DB2 documentation [1] that explains how to connect Micro
Focus COBOL and IBM COBOL to DB2. We have an older, unsupported,
version of Micro Focus, but it might do in a pinch. My concern is that
using this involves invoking "nmake", a tool I know nothing about. And
spending the time chasing down and learning a build tool in order to
speed up our development process seems... well, counterproductive.

So I was wondering if anyone knew of relatively straightforward ways of
connecting COBOL stored procedures to DB2 inside Windows; any free or
inexpensive COBOL compiler is okay, but I'd love to use an open-source
one if possible. We are running DB2 UDB v7.

Thanks for any help you can offer.

-- Scott Sauyet, sc***@sauyet.com

[1] http://tinyurl.com/2hy6u
https://aurora.vcu.edu/db2help/db2ax/frame3.htm#embed
and many similar pages
Nov 12 '05 #1
5 3961
You don't need "nmake". Look in "\sqllib\samples\cobol_mf", and you will
see two batch files: "bldapp.bat" and "bldrtn.bat". In there you will find
the commands used to build the application and SP respectively). You could
just lift the compile & link commands right out of these scripts.

As for whether or not your current version of MF COBOL is sufficient, or
if another COBOL compiler will work, I'm afraid I don't know. Ya pays yer
dollar and ya takes yer chances...

--
Larry Menard
IBM Workstation Database (DB2) Information Development, Samples Coordinator
Defender of Geese and of All Things Natural
"Scott Sauyet" <sc***@sauyet.com> wrote in message
news:e5**************************@posting.google.c om...
If this is not the appropriate forum, could someone please let me know?
Thanks.

I'm part of a very heterogeneous distributed development team, and a
clash of cultures is causing some very significant problems. It's
taking us far too long to get the people with the proper permissions to
compile and bind COBOL stored procedures on our MVS DB2 test and
deployment environments. The bureaucratic hurdles to getting these
permissions ourselves have for months been insurmountable, and I
recently had what I hope is a brainstorm. (Maybe it's just a
brain-tropical depression, though. :-) )

I would like to duplicate our database on a local Windows version of
DB2, and compile and bind the COBOL to this instance. Then the
bureacrats can take as long as they like about the deployment
environment, and we can still do our development.

I've found some DB2 documentation [1] that explains how to connect Micro
Focus COBOL and IBM COBOL to DB2. We have an older, unsupported,
version of Micro Focus, but it might do in a pinch. My concern is that
using this involves invoking "nmake", a tool I know nothing about. And
spending the time chasing down and learning a build tool in order to
speed up our development process seems... well, counterproductive.

So I was wondering if anyone knew of relatively straightforward ways of
connecting COBOL stored procedures to DB2 inside Windows; any free or
inexpensive COBOL compiler is okay, but I'd love to use an open-source
one if possible. We are running DB2 UDB v7.

Thanks for any help you can offer.

-- Scott Sauyet, sc***@sauyet.com

[1] http://tinyurl.com/2hy6u
https://aurora.vcu.edu/db2help/db2ax/frame3.htm#embed
and many similar pages

Nov 12 '05 #2
"Larry Menard" <lm*****@GoSpamYourself.com> wrote in message news:<bu**********@hanover.torolab.ibm.com>...
You don't need "nmake". Look in "\sqllib\samples\cobol_mf", and you will
see two batch files: "bldapp.bat" and "bldrtn.bat". In there you will find
the commands used to build the application and SP respectively). You could
just lift the compile & link commands right out of these scripts.
Thanks for the response. I've been sidetracked on other productions
issues since I wrote that, but will get back to it next week. That
certainly looks straightforward though.
As for whether or not your current version of MF COBOL is sufficient, or
if another COBOL compiler will work, I'm afraid I don't know. Ya pays yer
dollar and ya takes yer chances...


Yeah, but I'm hoping not to pay any additional dollars. :-)

Thanks again,

-- Scott
Nov 12 '05 #3
In article <e5**************************@posting.google.com >, Scott
Sauyet (sc***@sauyet.com) says...
"Larry Menard" <lm*****@GoSpamYourself.com> wrote in message news:<bu**********@hanover.torolab.ibm.com>...
You don't need "nmake". Look in "\sqllib\samples\cobol_mf", and you will
see two batch files: "bldapp.bat" and "bldrtn.bat". In there you will find
the commands used to build the application and SP respectively). You could
just lift the compile & link commands right out of these scripts.


Thanks for the response. I've been sidetracked on other productions
issues since I wrote that, but will get back to it next week. That
certainly looks straightforward though.
As for whether or not your current version of MF COBOL is sufficient, or
if another COBOL compiler will work, I'm afraid I don't know. Ya pays yer
dollar and ya takes yer chances...


Yeah, but I'm hoping not to pay any additional dollars. :-)

Thanks again,

-- Scott


What DB2 version and MF Cobol version do you have?
We are running with DB2 V7.2.4 and MFCobol 4.... on NT 4.0.
You need an updated utils.lbr from MF if you want to specify the
user/password during compile. The MF helpdesk should now about it.
Nov 12 '05 #4
> == Gert van der Kooij <ge**@invalid.nl>
in news:<MP************************@news.xs4all.nl>
What DB2 version and MF Cobol version do you have?
We are running with DB2 V7.2.4 and MFCobol 4.... on NT 4.0.
You need an updated utils.lbr from MF if you want to specify the
user/password during compile. The MF helpdesk should now about it.


We are using DB2 7.2.something and MFCobol 4.0.32. Several members
of my team have started trying this, and though we haven't worked
out the kinks, it looks like we'll be able to do it. I will look
at the MF helpdesk.

Thank you very much for your help,

-- Scott Sauyet, sc***@sauyet.com
Nov 12 '05 #5
sc***@sauyet.com (Scott Sauyet) wrote in message news:<e5**************************@posting.google. com>...
== Gert van der Kooij <ge**@invalid.nl>

in news:<MP************************@news.xs4all.nl>
What DB2 version and MF Cobol version do you have?
We are running with DB2 V7.2.4 and MFCobol 4.... on NT 4.0.
You need an updated utils.lbr from MF if you want to specify the
user/password during compile. The MF helpdesk should now about it.


We are using DB2 7.2.something and MFCobol 4.0.32. Several members
of my team have started trying this, and though we haven't worked
out the kinks, it looks like we'll be able to do it. I will look
at the MF helpdesk.

Thank you very much for your help,

-- Scott Sauyet, sc***@sauyet.com

Scott
We have it working very well. If you need help please email me.
Nov 12 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Thomasb | last post by:
Hi! In our company we have a huge amount of COBOL sub-routines that are called from other COBOL-programs. Now we are looking for a method to call them from Windows/Web applications. One...
2
by: singlal | last post by:
Hi, my question was not getting any attention because it moved to 2nd page; so posting it again. Sorry for any inconvenience but I need to get it resolved fast. Need your help! ...
1
by: JLE | last post by:
I'm new to stored procedures, however, the passing of parameters using a group item in the calling cobol program seems incorrect to me. Would this work? Calling COBOL pgm is calling a stored...
0
by: gtan | last post by:
How can I call a stored procedure when one of the parameters is a cursor? Shouldn't the COBOL code looks something like this? : EXEC SQL CALL CMQRACIN(<what do i place here?>...
0
by: balaji krishna | last post by:
Hi, I need to handle the return set from COBOL stored procedure from my invoking Java program. I do not know, how many rows the stored proc SQL fetches.I have declared the cursor in that proc, but i...
0
by: Khushboo Chhabra | last post by:
Hello, I’m working on mainframes platform and have been trying to collect some knowledge on Stored Procedures. I referred to IBM’s red book. And found details regarding how to create stored...
0
by: pompeyoc | last post by:
I am trying to learn how to use stored procedures written in COBOL so I wrote 2 small programs to test it out: the stored procedure and the the calling program. I have no problems compiling them...
4
by: PJackson | last post by:
I have been given the task of taking a 3,200 line COBOL stored procedure and duplicating the same functionality in UDB 7.2 on the Windows platform with a procedural SQL stored procedure. I have...
1
by: rsreeni | last post by:
Hi, We are planning to use Cobol Stored procedures for doing our Data retrieval from DB2 Tables. The stored procedure(s) will be called from J2EE application via Db2 Connect. Does the linkage...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.