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



Switch to ACS 5250 and the Unicode characters will display just fine...

Charles

On Sun, Mar 25, 2018 at 9:04 AM, Joep Beckeringh <joep.beckeringh@xxxxxxxxxx
wrote:

We're incorporating more Unicode fields in our database. But in some cases
we still have to maintain a 5250 user interface to these data. So we want
to signal to 5250 users when we encounter untranslatable characters in a
field. For that we use program status; status is 50 when conversion results
in substitution.

But we have a problem when we have two Unicode fields, let's call them
FIELDA and FIELDB. When we move FIELDA to an EBCDIC field for the display
file and FIELDA contains something untranslatable program status becomes 50
, so the program is aware of the problem in FIELDA. But when FIELDB has no
problems when it is moved to an EBCDIC field, program status is still 50.

I would have expected, because an unsuccesful move results in a status
change, that a succesful move would reset the status. Like file operations
do. But apparently it doesn't.

What I did was reset the *STATUS subfield in the program status data
structure. Then, when FIELDB does contain untranslatable characters, status
turns to 50 again and I can signal the problem. And when FIELDB has no
problems, program status remains zero, so I know there is no problem.
Sadly, %status function still returns 50. It seems that resetting the
*STATUS subfield has no effect on what %status returns.

Is this a bug? Or a feature:-) ? Or is there some other way of resetting
program status (apart from causing and catching an error)?

Joep Beckeringh



--
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: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: http://amzn.to/2dEadiD


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.