Joe & Keith,
Thanks your help.
-------- Original Message --------
From: "Joe Sam Shirah" <joe_sam@xxxxxxxxxxxxx>
To: "Java Programming on and around the iSeries / AS400"
Subject: Re:How do I retrieve the every field length defined in DDL with
Date: 2006/9/7 AM 12:11
Depending on your needs, Keith's answer of
ResultSetMetaData.getColumnDisplaySize() is probably enough. If you need
more information and specifics about the columns, you can also use
There's actually an example of both methods in the list archives at:
I also have an example using ResultSetMetaData.getColumnDisplaySize() to
set up a fixed font display in one of the exercises for my JDBC tutorial at
Sun's developer site. The complete program is at:
Joe Sam Shirah - http://www.conceptgo.com
conceptGO - Consulting/Development/Outsourcing
Java Filter Forum: http://www.ibm.com/developerworks/java/
Just the JDBC FAQs: http://www.jguru.com/faq/JDBC
Going International? http://www.jguru.com/faq/I18N
Que Java400? http://www.jguru.com/faq/Java400
----- Original Message -----
From: "McCully, Keith (RBS Insurance)" <Keith.McCully@xxxxxxxxx>
To: "'Java Programming on and around the iSeries / AS400'"
Sent: Wednesday, September 06, 2006 5:21 AM
Subject: RE: How do I retrieve the every field length defined in DDL with
Create a ResultSetMetaData object then use its getColumnDisplaySize method
for every column.
If you want further info then refer to the JDBC API docs.
Sent: 06 September 2006 04:56
To: Java Programming on and around the iSeries / AS400
Subject: How do I retrieve the every field length defined in DDL with JDBC
*** WARNING : This message originates from the Internet ***
I have one table created with following DDL:
CREATE TABLE ACTION
How do I retrieve the atble's every field length defined in DDL with JDBC