× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: JDBC and As/400 question
  • From: "Yiannis Stamatopoulos" <jstamatop@xxxxxxxxxxx>
  • Date: Fri, 20 Oct 2000 12:54:43 +0200

Hello everyone,
I have a possibly silly question, since I am totally unused to the AS/400 system. I want to connect to AS/400 files (this is a little obscure to me, I think AS/400 files equal to DB2 tables or not???) using JDBC from a Java program. The thing is that numeric is used for many fields in the files, and all of the fields are padded with zeros if the number has less digits than the field's declaration. For example for a numeric(9) field a correct entry would be 000056787. How is this possible to be kept consistent using JDBC calls? Could I insert rows using only strings which would be padded with zeros from my Java program or is there any other workaround? Thanks for your time, and I'm really sorry if the question is trivial.
 
Yiannis Stamatopoulos

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.