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

You can code the Unicode literal... something like this:

D ATSYM C u'0040'

Then at run-time, you can do this:

addr = 'user' + %char(ATSYM) + 'mymail.com';

On newer releases, you can leave off the %CHAR -- but I think at this point, I'd keep it in, just in case. It's not that hard to code, and will make it possible to use your code on older releases.

What I don't know, however, is whether %CHAR() will convert to the program's CCSID or the job's CCSID...? So you'll have to do some tests to find that out. You could always fall back on iconv(), I suppose :) (but at that point, it'd be simpler to use a file or message file)


Ashish Kulkarni wrote:
HiI want to hard code @mymail.com in my RPGLE program, this will work if the
CCSID is 37, but not work with some other CCSID
i think the ascii valus is u'0040'
but how do i use it


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.