× 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 is a well known distribution problem.

When you compile a program the hexadecimal values of characters
in the module is the value according to the source file CCSID.

If you have other sourcefiles with a different CCSID the hex
value will be different in the main program and because programs
communicates in hex this will never work.

To avoid this problem, the easy way is:

When you install, create new empty sourcefiles with the system
CCSID. Then copy the delivered sourcefiles to the new empty
sourcefiles (this will translate hex values) and recompile the
delivered service programs. The hex value will now be the same
in the service program that they will be in the main programs.

Henrik




"Schmidt, Mihael" <Mihael.Schmidt@xxxxxxxxxxx>
Sent by: rpg400-l-bounces@xxxxxxxxxxxx
29-07-2010 07:53
Please respond to
RPG programming on the IBM i / System i <rpg400-l@xxxxxxxxxxxx>


To
RPG programming on the IBM i / System i <rpg400-l@xxxxxxxxxxxx>
cc

Subject
RE: Future of RPG was: Open Access for RPG






Typo:

AFAIK that should not be the problem if you compile the modules for the
serviceprogram on the machine (or at a least a machine with the same
ccsid) that will run the program, else it really is a problem.

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]
On Behalf Of Schmidt, Mihael
Sent: Thursday, July 29, 2010 7:39 AM
To: RPG programming on the IBM i / System i
Subject: RE: Future of RPG was: Open Access for RPG

AFAIK that should be the problem if you compile the modules for the
serviceprogram on the machine (or at a least a machine with the same
ccsid) that will run the program, else it really is a problem.

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]
On Behalf Of Aaron Bartell
Sent: Wednesday, July 28, 2010 8:27 PM
To: RPG programming on the IBM i / System i
Subject: Re: Future of RPG was: Open Access for RPG

I have had the same issue with RPGUI and it's use of { [ ] } for JSON
arrays - works great on many systems, but with some code pages it gets
translated incorrectly - and that is within compiled objects! (which
surprised me a bit)

I need to get around to asking Mihael to change it to be hex coded
into a constant or something.

Aaron Bartell
http://mowyourlawn.com
http://mowyourlawn.com/blog/



On Wed, Jul 28, 2010 at 12:54 PM, Birgitta Hauser
<Hauser@xxxxxxxxxxxxxxx> wrote:
while anybody else uses
if (abc != '123') {
in other languages

The answer may be quite easy, because neither ! nor { } nor || is
international or the same in all EBCDIC, ASCII, UNICODE schemas.

I've already problems with Release 7.1 when IBM introduced Arrays where
brackets [] are used.
If I want to create an array on my system I have to type:

CREATE TYPE MySchema/MyIntArr
AS INTEGER ARRAY ¬ 100 | ;

(instead of Array [100])
Nice, isn't it?


Mit freundlichen Grüßen / Best regards


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.