|
Hi Brad, EBCDIC needs sO and sI bytes to signal start and end of DBCS, well shift out of single byte and shift back in to single byte :) ASCII does not need these flags. Could it be that this is the "problem" you are seeing? Regards, Kevin W.
-----Original Message----- From: Brad Stone [mailto:brad@xxxxxxxxxxxx] Sent: Tuesday, 7 November 2006 2:44 AM To: RPG programming on the AS400 / iSeries Subject: Re: More Stream File and DBCS issues... On Fri, 03 Nov 2006 12:54:41 -0500 Barbara Morris <bmorris@xxxxxxxxxx> wrote:A fairly easy way to handle this is to do the processing in ucs2. (At least, it's easy, if your string doesn't have more than 16383 total characters, since that's the maximum number of UCS2 characters that RPG supports.) D lparen c %ucs2('(') D rparen c %ucs2(')') D apos c %ucs2('''') D string s 16383c varying string = %ucs2(charstring); --- use all the same code as you had before --- p = %scan(lparen : string); etc charstring = %char(string);Thanks again for this, Barbara. It seems to have gotten me one step further. The only issue I'm having now is it seems the sI and sO characters are either getting replaced or not transferred properly, but I need to find out where that is happening. It seems to be happening in the WRITE to the stream file. Brad www.bvstools.com -- This is the RPG programming on the AS400 / 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.
As an Amazon Associate we earn from qualifying purchases.
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.