how to initialize graphic character field

695 pts.
Tags:
D-Spec
RPG
RPGLE
hi, I am facing problem while i am initializing my graphic character field with initial value in D spec below is code D Name S 20G VARYING INZ(G'oXXYYZZi') can any one help me the above code giving me error while i am defining graphic character field
ASKED: August 6, 2008  11:01 AM
UPDATED: August 7, 2008  2:06 PM

Answer Wiki

Thanks. We'll let you know when a new response is added.

If you are literally using o and i as shown in your inz statement then you probably missed this note

Note:
The examples of graphic literals in this manual are not valid graphic literals. They use the letter ‘o’ to represent the shift-out character and the letter ‘i’ to represent the shift-in character. Often the graphic data is expressed as D1D2 or AABB; these are not valid double-byte characters. Normally, graphic literals are entered using a DBCS-capable keyboard that automatically enters the shift-out and shift-in characters before and after the DBCS characters are entered.

which is found on <a href=”http://publib.boulder.ibm.com/infocenter/iseries/v5r4/topic/books_web/c0925086173.htm#HDRDGRAPH”>this page</a>.

Do you have a graphic terminal or are you trying to enter graphic code points from a SBCS device (which is what I am usually doing)?

Bruce Vining
<a href=”http://www.brucevining.com/”>Bruce Vining Services</a>

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following