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



fkany=xyKOxUUvAoHhjpcFh+TbANBPR1lH4CV8@public.gmane.org wrote:
--
It seems that the XFOOT operation I'm using is not working.  It places a
value a lot lower in the result field than what it should be.  I have
pasted some of the code in this email.  Please let me know if you see
anything I'm missing.  Using RPGIII code.

Arrays
(Embedded image moved to file: pic29510.pcx)
(Embedded image moved to file: pic04745.pcx)

J = 9000
*Sum up Array elements and place in last element of Array
(Embedded image moved to file: pic13186.pcx)

Array $RA is the array I'm having a problem with.  Array $WA works fine
with the XFOOT operation.  According to the data in the array elements the
last element of the array should be close to 8,000,000.00 but the value
after the XFOOT operation has completed is only 36,000.00.
Buck is probably right.  Probably, the 9000 numbers sum up to some
amount like 10,036,000.00, which would get truncated to 36,000.00
when assigned to the target.

Yet another reason to upgrade to RPG IV.  ;-)

Cheers!  Hans





As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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.