× 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 Gary,

This should work just fine on V4R4... The code was written/tested on V3R2, and later updated for V4R5, where it was re-tested. (The RPG compiler didn't change between V4R4 and V4R5 -- so that shouldn't be an issue.)

Besides which... the error (decimal data) doesn't normally indicate a missing feature. It indicates bad data in the field.

I've run this program on my machine many times, at various releases, and haven't had the problem you describe. Obviously, there's a bug somewhere, but I don't know where...

Can you show me how to reproduce the problem? Or can you debug the program, and determine where the bad data is coming from?



On 9/24/2010 1:29 AM, Gary Kuznitz wrote:
I have a need to read every file in one folder in the IFS from an RPG program.
I found a great example of how to do that at Scott's web site.
www.scottklement.com/rpg/ifs.html
Thank you Scott for sharing the example.

I chose to test out the program CH4Fixed. I am getting a Decimal data error at line
154 in the field PartNo. During a Debug session I see that PartNo was fine with
numbers from 5001 to 5006. PartNo had garbage put into the field at line 153.
callp read(fd: %addr(PartNo): %size(PartNo))

I'm running v4r4. I didn't get any compile errors. Is there something on that line that
won't run in this version of the OS? Has anyone else run into this? Does anyone have
any ideas of why this might not work?

Thank you,

Gary Kuznitz


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.