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



Hi Dave,

Thanks a million. All the fields do have CCSID 13488. I had to change all
the fields to Ucs2 but it works fine now.
vnani = %Ucs2(vnani) + %Ucs2('.') + %Ucs2(vnobj);

For me that tip was fantastic to get me started !!
BR
Ewart




Dave Murvin

From:
Dave Murvin <davem@xxxxxxxx>


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


Cc:



Date:
12/02/2009 10:35 PM


Subject:
Re: AW: Concatenating G type variables



Ewart,

If theses graphic fields are Unicode (CCSID 13488) you could use the
following:

vnani = %trim(vnani) + %Ucs2('.') + %trim(vnobj);

The dspffd command should tell you what the CCSID for the fields,.

Dave


ewart.desouza@xxxxxxxxxxx wrote:
Hi Birgitta,

Thanks a lot. Yes I found that out & I'm now searching for ways to
convert
the '.' into a graphic character. There are some %GRAPH examples in the
manual but the concept is still not very clear. Hope to find a solution
soon.

Thanks & best regards
Ewart





Following are 2 Graphic type fields.

VNANI G 0 247 304
VNOBJ G 0 347 358

The following statement does not work.

vnani = %trim(vnani) + '.' + %trim(vnobj);

Error message:
*RNF7421 30 045400 Operands are not compatible with the type of
operator.

Any ideas how to concatenate G type fields ??


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.