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



Because the built-in function, %char, works with numeric fields (since V4R4),
why use _itoa?.  Here is a small demonstration.

D bin             s              9b 5 inz(12.234)
D int             s             10i 0 inz(12345)
D string          s             10    varying
 /free
  string = %char(bin);
  dsply string;
  string = %char(int);
  dsply string;
  *inlr = *on;
 /end-free

Mel Rothman, CGIDEV2 Author
IBM eServer Custom Technology Center (CTC), Rochester, Minnesota
http://www-1.ibm.com/servers/eserver/iseries/service/ctc/
http://www.easy400.ibm.it/en


Jim Langston wrote:
>
> Just making sure I haven't missed anything in V5R1 RPG IV.  Is itoa
> still the way to convert from number to text?  I have a 4 byte binary
> number need to convert to text for QCMD processing (spool file number
> in data queue).
>
> Regards,
>
> Jim Langston


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.