|
Um, how about using getBytes to get/set the values to the database and
building your own 'parser' for turning the packed field to/from a Java
object?
Regards,
Richard D. Dettinger
AS/400 Java Data Access Team
"Biologists have a special word for stability -- dead"
Larry Wall
Open Source Developers Journal
Issue 1, Jan 2000
ashaikhhafiz@chubb.com@midrange.com on 04/09/2001 09:01:47 PM
Please respond to JAVA400-L@midrange.com
Sent by: owner-java400-l@midrange.com
To: JAVA400-L@midrange.com
cc:
Subject: Re: How to extract information from packed fields from AS400 in
java!
No!
it is a packed field which has the data corresponding to more than 1
entity. eg. like the details of the employee are stored in a single packed
field and i have to extract the employee no,employee name.....etc.
Thnx & Regards
Azeem.
"Dave Wall" <dawall@us.ibm.com>@midrange.com on 09/04/2001 22:27:55
Please respond to JAVA400-L@midrange.com
Sent by: owner-java400-l@midrange.com
To: JAVA400-L@midrange.com
cc:
Subject: Re: How to extract information from packed fields from AS400 in
java!
Are you talking about a packed decimal number? The Toolbox for Java has a
class that converts between Java numeric types and AS/400 packed decimal
numbers.
David Wall
AS/400 Toolbox for Java
ashaikhhafiz@chubb.com@midrange.com on 04/08/2001 08:58:41 PM
Please respond to JAVA400-L@midrange.com
Sent by: owner-java400-l@midrange.com
To: JAVA400-L@midrange.com
cc:
Subject: How to extract information from packed fields from AS400 in java!
Hi!
i have a problem reading the information from a packed field. how do i
extract the information which is stored on the AS400 as a packed field in
java, either from a servlet or a java class. it is more than one
information stored in the packed field.
Have a great day!
Thnx & Regards!
Azeem.
+---
| This is the JAVA/400 Mailing List!
| To submit a new message, send your mail to JAVA400-L@midrange.com.
| To subscribe to this list send email to JAVA400-L-SUB@midrange.com.
| To unsubscribe from this list send email to JAVA400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner: joe@zappie.net
+---
+---
| This is the JAVA/400 Mailing List!
| To submit a new message, send your mail to JAVA400-L@midrange.com.
| To subscribe to this list send email to JAVA400-L-SUB@midrange.com.
| To unsubscribe from this list send email to JAVA400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner: joe@zappie.net
+---
+---
| This is the JAVA/400 Mailing List!
| To submit a new message, send your mail to JAVA400-L@midrange.com.
| To subscribe to this list send email to JAVA400-L-SUB@midrange.com.
| To unsubscribe from this list send email to JAVA400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner: joe@zappie.net
+---
+---
| This is the JAVA/400 Mailing List!
| To submit a new message, send your mail to JAVA400-L@midrange.com.
| To subscribe to this list send email to JAVA400-L-SUB@midrange.com.
| To unsubscribe from this list send email to JAVA400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner: joe@zappie.net
+---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.