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



Folks, I have posted code at http://code.midrange.com/6d4d39e9e7.html that
is intended to exercise the cvtch procedure (to convert hex characters to
the binary data they represent).



I have struggled with this instruction time and again over the years, and
always end up writing my own. I was inspired and encouraged by Scott's
example here http://archive.midrange.com/rpg400-l/200205/msg00309.html - and
that does work great without changes on this system. However, my code does
not, and I don't see gaping differences, aside from the length of the
buffers and so on.


(Note, there was much more to this program than what you see... but I have
stripped it down to this minimum-failing module in order to support the
debugging process.



The error experienced when running this on a V5R3 system occurs when
executing the cvtch() function:



Message ID . . . . . . : C2M3001 Severity . . . . . . . : 30

Message type . . . . . : Diagnostic

Date sent . . . . . . : 04/16/10 Time sent . . . . . . : 05:18:22



Message . . . . : A domain error in a math function occurred.

Cause . . . . . : An input argument is outside the domain for which the

mathematical function is defined.

Recovery . . . : Supply input values that are consistent with the

mathematical definition of the function.



Would someone please enlighten me as to why I struggle so with this one?
Stragely enough, I never have such issues with cvthc. Go figure.



Dennis E. Lovelady
AIM/Skype: delovelady MSN: fastcounter@xxxxxxxxxxxx
<http://www.linkedin.com/in/dennislovelady>
www.linkedin.com/in/dennislovelady --
If you lined up all the cars in the world end to end, someone would be
stupid enough to try to pass them, five or six at a time, on a hill, in the
fog.




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.