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



On Midrange-L (oops!), I wrote:
>> I'm looking at the V5R4 reference for %dec(), but I don't see any
>> mention of what happens if the first parameter is a character
>> variable (or literal) containing non-numeric data.
>>
>> Is there somewhere to find this sort of thing, or do you just look at
>> the list of all the error codes and hope you can figure out which
>> ones are possible from a given opcode/BIF?


Rob Berendt responded:
> I think if you peruse the ILE RPG Reference (not the program guide)
> and look at
> Chapter 5 "File and program exception/errors"
> Program Exceptions/Errors
> Program Status Data Structure
> Program Status Codes


Thanks Rob, I can never remember the proper name of that section. That's the list of error codes to which I was referring. I'm looking at HTML version of the RPG Reference so I search more easily, but I don't see references in that document to which operations can cause a given code.

I'm probably overthinking it, but I'm nervous that I'll miss something important by just reading the list and guessing which operations can cause which codes.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.