473,394 Members | 1,737 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,394 software developers and data experts.

Accessing DB2 UDB on Linux from within a DB2 VM Cobol program

I'm currently working on a migration of a DB2 VM V7.2 database to DB2 UDB
Linux V8.2.
In the first stage the applications will stay on VM only the database will
be migrated.
Applications will be migrated in a second stage in the future.
The connectivity between DB2 VM as a DRDA requester and DB2 UDB as DRDA
server has been established.
At a first look at the applications one thing came up: they use SQL INSERT
via a CURSOR.
This works that way:
- a cursor is declared for INSERT
- the cursor is opened
- Rows are inserted via SQL PUT
- PUT will not immediately insert that row, but will store the rows in a
memory block until this block is full.
At that time the accumulated rows will get inserted all together.

Unfortunately DB2 UDB does not support INSERT via CURSOR (at least AFAIK).
My question: will it be possible to run the COBOL programs unchanged against
a DB2 UDB database?
Means will DRDA emulate a INSERT via cursor as it for example emulates
COMPOUND SQL against platforms that do not support COMPOUND SQL.

I do not have a VM system at the moment to run tests, but need to clarify
this.

Any comments or links ?

TIA

Jo
Nov 12 '05 #1
3 2711
Joachim Klassen wrote:
I'm currently working on a migration of a DB2 VM V7.2 database to DB2 UDB
Linux V8.2.


SQL PUT insert method is unique to DB2 for VSE and VM utilizing private protocol
connection from client.

When you connect from DB2 VM to Linux server - you will be using DRDA protocol.
Your Cobol program should be prepared against Linux server with SQLERROR
CONTINUE option. You will get an SQL error when processing declare cursor for
insert statement.

This error can be ignored.

Your COBOL application will use non-blocking EXECUTE IMMEDIATE INSERT instead of
SQL PUT. Performance of this application will suffer somehow - but unchanged
Cobol programm will execute correctly.

You may want to rewrite this part of the application to eliminate prepare time
errors.

Jan M. Nelken

Nov 12 '05 #2

"Jan M. Nelken" <Un**********@Invalid.Domain> schrieb im Newsbeitrag
news:42********@news1.prserv.net...
Joachim Klassen wrote:
I'm currently working on a migration of a DB2 VM V7.2 database to DB2 UDB
Linux V8.2.


SQL PUT insert method is unique to DB2 for VSE and VM utilizing private
protocol connection from client.

When you connect from DB2 VM to Linux server - you will be using DRDA
protocol. Your Cobol program should be prepared against Linux server with
SQLERROR CONTINUE option. You will get an SQL error when processing
declare cursor for insert statement.

This error can be ignored.

Your COBOL application will use non-blocking EXECUTE IMMEDIATE INSERT
instead of SQL PUT. Performance of this application will suffer somehow -
but unchanged Cobol programm will execute correctly.

You may want to rewrite this part of the application to eliminate prepare
time errors.

Jan M. Nelken


Great- I love this answer :-).

Could I have found this in the docs/web anywhere ?

Thanks a lot
Joachim
Nov 12 '05 #3
Joachim Klassen wrote:
Great- I love this answer :-).

Could I have found this in the docs/web anywhere ?


If you were lucky - this was hidden in the DB2/VSE&VM SQL Reference manual in
chapter 2. Concepts. Unfortuneately it was not mentioned in the PUT statement
section where some one might actually look for it.

"...Only DB2 Server for VSE & VM supports Insert Cursors. However, an
application on a DB2 Server for VM application requester or a DB2 Server for
VSE CICS application requester can declare Insert Cursors and issue PUT
statements against unlike application servers. Note that there is no blocking of
input data because the application requester turns PUT statements into INSERT
statements. The purpose of this support is to allow an application to run without
having to make this change in the source program..."

Jan M. Nelken
Nov 12 '05 #4

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

Similar topics

30
by: Stuart Turner | last post by:
Hi Everyone, I'm working hard trying to get Python 'accepted' in the organisation I work for. I'm making some good in-roads. One chap sent me the text below on his views of Python. I wondered...
2
by: Zalek Bloom | last post by:
Actually I would like to know what additional JCL I will need if a COBOL non-DB2 program is calling to a COBOL/DB2 program. The original non-DB2 program is executed using: //STEP1 EXEC ...
1
by: robert | last post by:
i may have been a bit glib in today's meeting. the issue of whether one could access tables from multiple schemas in a 390 instance came up. i piped up with, "easy". now, i was speaking from...
4
by: Kalpesh Parikh | last post by:
We have 'C' routine calls Pro COBOL routine...... Data passed back to the C program is shifted by 4 bytes. We are trying to understand and fix this. p.s. COBOL to COBOL is working fine! Any...
13
by: EricJ | last post by:
hi i need to access cobol data files from .net, the files have no or .vix extention (i think thats a acucobol or something like that) (/me has completely no experience in cobol) i heard that...
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! ...
15
by: dm1608 | last post by:
We have a number of COBOL programs, and some were currently developing, that simply read TEXT based reports and scrap the reports for various information. I'm curious to know if anyone has...
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...
2
by: pompeyoc | last post by:
Hi, I am a newbie when it comes to stored procs and i would like to learn how to call a COBOL program from a stored procedure. The SP can either be an DB2 SQL SP or an external COBOL/DB2 SP. I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.