473,808 Members | 2,761 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2737
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**********@I nvalid.Domain> schrieb im Newsbeitrag
news:42******** @news1.prserv.n et...
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
2800
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 if anyone from the group could give me some advice on how to respond / if they had been in a similar position. Any help appreciated, Thanks in advance,
2
22480
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 PGM=PROG1 I know I have to supply database name/plan to my program, but how? Another question: what happens is the PROG1 program is a DB2 program and is calling to another DB2 program with a different database and a different plan?
1
2143
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 using AQT and dynamic queries. just prepend the schema name, and let er rip. big deal. then my cobol colleagues started with: plans, packages, collection ids. my eyes began to glaze over. so, is it just some straightforward configuration...
4
1898
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 pointers you all can provide would be appreciated. Thank You.
13
10262
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 there should be an odbc connection for that. Dous anyone have any ideas on how to do this?? --
2
1434
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! **************************************************************************************************** Original Question: -------------------- Has anyone called a COBOL subroutine using COBOL CALL from a COBOL/DB2
15
9574
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 attempted to do this sort of thing using C#? I would love to get rid of my COBOL programmer and especially the code, if I can. Apparently, it is much simplier to edit/parse text reports in COBOL than other languages.... so I'm being told.
0
5806
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 but when the calling program enters the SP, it either hangs or gives me sqlcode -1131. We are on AIX 5.2 (I think) running DB2 UDB ver 7.2 and MF COBOL 4.1. Below are the programs I wrote:
2
6419
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 can use either depending on which is more efficient. One of the older posts ("Calling a COBOL Subroutine from COBOL/DB2 Stored Procedure" Dec 2005) suggested this is possible but I couldn't follow the explanation and there wasn't any examples....
0
9600
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10376
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10375
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9198
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7651
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5548
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4331
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3860
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3011
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.