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

JDBC - getColumnName for stored procedure not returning the column name

Hi,

I have some JDBC calling a DB2 mainframe (os/390) when I get the result
set back from a stored procedure call and get the ResultSetMetaData and
try to execute rsmd.getColumnName(1) all I get back is the String "1"
not the column name.

Has anyone seen this issue?

Nov 12 '05 #1
3 2384


fs**@optonline.net wrote:
Hi,

I have some JDBC calling a DB2 mainframe (os/390) when I get the result
set back from a stored procedure call and get the ResultSetMetaData and
try to execute rsmd.getColumnName(1) all I get back is the String "1"
not the column name.

Has anyone seen this issue?


What is the query the procedure is doing? Is that column directly from a
table, or is it a computed column etc?

Nov 12 '05 #2
It's basically doing a select colName as MyColName from tableX;

Very simple and straight forward. Some google'ing has found that this
is a known issue with some versions of db2. The fix seemed to be to
use a ZPARM called DESCSTAT. However at this time I don't have access
to change that.

Any other thoughts are appreciated.

Frank

Nov 12 '05 #3


fs**@optonline.net wrote:
It's basically doing a select colName as MyColName from tableX;

Very simple and straight forward. Some google'ing has found that this
is a known issue with some versions of db2. The fix seemed to be to
use a ZPARM called DESCSTAT. However at this time I don't have access
to change that.

Any other thoughts are appreciated.

Frank


Ok, then it seems that you're hosed. If the DBMS isn't
sending the metadata along with the data, there's nothing
you or the driver can do about it.
Wish I could help,
Joe Weinstein at BEA Systems

Nov 12 '05 #4

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

Similar topics

2
by: June Moore | last post by:
Hi all, I have a stored procedure that return a resultset e.g. stored proc: get_employee_details select emp_id, emp_name, emp_salary, emp_position from empoloyee I would like to write...
5
by: Member | last post by:
Hi All. Maybe someone in here could help on this too.... Uusally I can return a value from a stored procedure without any problem. Today I ran into something I cannot figure out. ...
0
by: Shaun | last post by:
Hi Just adding some sprocs to a large access 2002 project to enhance speed and stability. Using SQL server 2000 and Access 2002 I have some recordset based sprocs that will return multiple rows,...
15
by: Steve | last post by:
I am trying to develop a stored procedure for an existing application that has data stored in numerous tables, each with the same set of columns. The main columns are Time and Value. There are...
3
by: Suresh | last post by:
Hi All I am writing Import\Export routine in DB2 using stored procedure and front end as JAVA. For this I have two option 1) Writing five different stored procedure returning one cursor...
5
by: Laurie Murphy | last post by:
I have been researching this problem for a week now and I haven't found anything that works. Here is the problem: We recently removed the SET ANSI_WARNINGS OFF code at the top of all of our triggers...
0
by: adougall | last post by:
I would like to know what the outcome was on the topic for Nested Stored Procedure returning result sets in DB2 on AS/400 was. I am getting the same problem RESULT_SET_LOCATOR in *LIBL type *SQLUDT...
1
by: %NAME% | last post by:
Is it possible to invoke a stored procedure from a jdbc statement interface? are there any examples on that topic? thanks
3
by: Homer J. Simpson | last post by:
I have the following stored procedure: ALTER PROCEDURE . AS BEGIN SET NOCOUNT ON; SELECT COUNT(*) FROM QUICKNOTES END ....and the following data source in my .aspx file:
6
by: Constantine AI | last post by:
Can anyone help? Ive created the below stored procedure to allow an input parameter of post code to be entered to display properties which have this post code. The procedure creates fine but...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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: 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
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...

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.