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



This matter of invariant and variant characters is probably why the CL operators are as they are - asterisk is invariant - vertical bar is not. That's one reason I don't like to use || or |< for *CAT or *TCAT - in the event you open your source in England, you get an exclamation point or the like, as I recall. It takes a bit of work to get around this, IIRC.

On 10/10/2013 9:20 AM, Jon Paris wrote:
Nothing RPG specific but you're looking at it the wrong way.

The C language definition (having an ASCII heritage) uses { and } and there is no problem world-wide because as Henrik says - the code point is always the same in ASCII.

EBCDIC on the other hand does not have a fixed code point for those characters. It was assumedly not an issue when the decision was made to allow them to "roam" because at the time IBM systems did not support C. Subsequently the addition of C and subsequently C++ and Java to IBM's arsenal caused problems with these characters. But it was too late to change EBCDIC so people have to work round the problems.

RPG has an EBCDIC heritage and has no create additional code page issues. This was a decision made back in V5 when /Free was introduced 10 years ago. wasn't going to change for this new feature now was it.

We've got an article on the new stuff coming out next week - in the meantime there's a few of our comments here:
http://ibmsystemsmag.blogs.com/idevelop/2013/10/as-you-may-have-already-heard-there-was-a-major-technology-refresh-tr-announcement-yesterday-check-out-fellow-blogger-st.html#comments

Here's a tiny URL for that! http://tinyurl.com/iDevelopOnTR7RPG


On 2013-10-10, at 9:47 AM, BButterworth@xxxxxxxxxxxxxx wrote:

IBM provides C in the native environment, so it seems like using them in
RPG would be possible unless there is a language-specific impediment.

Blake


message: 1
date: Thu, 10 Oct 2013 09:45:14 +0200
from: Henrik R?tzou <hr@xxxxxxxxxxxx>
subject: Re: Free format H, F, D and P specs

Thomas,

Presumably the reason for not using brackets is that SBCS EBCDIC brackets,
unlike in ASCII, has a floating binary value. Brackets will make source
code extremely CCSID sensitive.

--
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.

Jon Paris

www.partner400.com
www.SystemiDeveloper.com






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.