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



You need 2984 as i5/OS Primary language. And use command CRTSRCPF with IGCDTA(*YES), then use DBCS 5250 emulator edit source.

Vengoal

qsrvbas@xxxxxxxxxxxx wrote:

midrange-l-request@xxxxxxxxxxxx wrote:

11. DBCS characters embedded in Source code (David Keck)

Can DBCS characters (literal strings) be included in program source code
under any circumstances?  We are exploring translation issues and solutions
for possible use in future environments where the national language
requires DBCS representation.

David:

Interesting question. Unfortunately, I have no idea what the correct answer is. 
My first thought is that it would be a bit more difficult to enter program 
source on a DBCS system if source couldn't contain DBCS characters. But I don't 
think that thought fits with what you're asking.

Overall, I think your best course is to store such text strings in external 
objects such as message files that are created with appropriate CCSIDs or hold 
messages descriptions in an appropriate CCSID.

I.e., don't store the text in the program source. Retrieve the strings you need 
when they are needed. This can mean _all_ such text, even simple 'Y' or 'N' 
values that you might use to compare against external inputs, e.g., from a 
display file.

Tom Liotta


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.