× 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: Re: How to extract information from packed fields from AS400 in java!
  • From: booth@xxxxxxxxxxxx
  • Date: Tue, 10 Apr 2001 12:17:52 -0400

Azeem, the real problem here seems to me to be the person that decided to 
join several different fields into one long field and then pack it.  How 
on earth can you be expected to find the border lines for fields in a 
string of undescribed numbers? 

A short conversation with the person that designed such a thing seems in 
order.  Wear heavy boots.


_______________________
Booth Martin
Booth@MartinVT.com
http://www.MartinVT.com
_______________________




"Dave Wall" <dawall@us.ibm.com>
Sent by: owner-java400-l@midrange.com
04/10/2001 09:25 AM
Please respond to JAVA400-L

 
        To:     JAVA400-L@midrange.com
        cc: 
        Subject:        Re: How to extract information from packed fields from 
AS400 in java!

Then you have to do it the hard way.  Get the data as a byte array and
parse out the fields.  The Toolbox still may help.  It has converters for
various types of AS/400 numeric and text data.  Once you determine which
bytes of a byte array make up a field, you could use a Toolbox converter 
to
convert it from a byte array to a Java object.  One more thing that may
help is the Toolbox RecordFormat class.  This class lets you describe the
format of a byte array of data.  As you extract data via the class it is
converted from AS/400 format to Java format.  For an example see the Data
Queue Consumer example in the sequential data queue section of the Toolbox
programmer's guide.

David Wall
AS/400 Toolbox for Java


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
+---




+---
| 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 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.