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



Hi Mike,

The problem is for 6p(2)= eleven length defined in the data structure, the
next field starting position is Seven, where as if the field is defined as 
11S(2) then the next field staring position is twelve , the data structure
length and positions get changed accordingly.

Thanks
Sadiq   

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]
On Behalf Of Barton, Mike
Sent: Friday, August 26, 2005 3:21 PM
To: RPG programming on the AS400 / iSeries
Subject: RE: Data structure gets populated for a junk value (mail2)

Sadiq

>D Packed          s             11P 2

you are mis-reading the definition of this field.

An 11S2 and an 11P2 field can hold the same range of numbers.
The difference is how they are stored. The Packed one takes
up less storage than the Signed one.

An 11P2 means maximum of 999999999.99 can be held

If however you define the field Packed as follows:
D Packed                  1     11P 2

then this means that the field occupies 11 bytes of storage
and can therefore hold 9999999999999999999.99 max

HTH

Mike

--



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.