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



Chris Bipes wrote:
For instance I have a 16 byte character field with binary data
and I want to turn it into a 32 byte character field that is the
hex representation of the field. Have any of you written such a
beast? I suppose I could create a 256 byte array with the values
"00" to "FF" and convert each character field to a binary field.
Is there an API that can make my job easier?


Probably in many cases just a language builtin function based on or using the CVTCH MI instruction itself should suffice versus calling an API to accomplish that task; e.g. C2X(), HEX(). Depending on where there is the need, there may be a function already available; e.g. in message handling for data logged in a job message queue strings may be implicitly converted to hex when not character data and message variables can be explicitly designated to format as *HEX.

Regards, Chuck

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.