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



Thanks Birgitta & all you guys who responded,

Fortunately we use only English & no DBCS characters. Hopefully I do not
have to make too many changes to our already existing interfaces.

Thanks again for responding.
Ewart



"Birgitta Hauser"

From:
"Birgitta Hauser" <Hauser@xxxxxxxxxxxxxxx>


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


Cc:



Date:
11/28/2009 02:34 PM


Subject:
AW: Accessing data type 'G' in RPG ???



Hi,

it depends on the CCSID used for the column/field.

Depending on the CCSID you have to use either the data type C (Unicode
CCSID
13488 or 1200) or G (Graphic all other DBCS CCSIDs) within RPG. For
Graphic
you need to specify the CCSID either in the H-Specs keyword CCSID or in
the
D-Specs when defining your fields. To convert character data (data type A)
or strings into the DBCS data type you need either the built-in-function
%UCS2 (for data type C) or %GRAPH (for data type G). To convert these DBCS
data into character data (data type A), you need the built-in-functions
%CHAR.

AFAIK those conversation rules will be relaxed with release 6.1.

Mit freundlichen Grüßen / Best regards

Birgitta Hauser

"Shoot for the moon, even if you miss, you'll land among the stars." (Les
Brown)
"If you think education is expensive, try ignorance." (Derek Bok)
"What is worse than training your staff and losing them? Not training them
and keeping them!"


-----Ursprüngliche Nachricht-----
Von: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]
Im
Auftrag von ewart.desouza@xxxxxxxxxxx
Gesendet: Friday, 27. November 2009 10:42
An: RPG programming on the IBM i / System i
Betreff: Accessing data type 'G' in RPG ???

Hi all,

We have just installed JDEdwards E1. I found that the iSeries data files
have fields with data type 'G' i.e Graphic. Any suggestions as to what
needs to be considered in order to populate these files from our home
grown conventional ERP system i.e. data types S, P, A, etc.

Thanks & best regards
Ewart
This e-mail is confidential and it is intended only for the addressees.
Any
review, dissemination, distribution, or copying of this message by persons
or entities other than the intended recipient is prohibited. If you have
received this e-mail in error, kindly notify us immediately by telephone
or
e-mail and delete the message from your system. The sender does not accept
liability for any errors or omissions in the contents of this message
which
may arise as a result of the e-mail transmission.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.