‎2007 Dec 01 1:36 PM
hi~all
i write some code for conver ASSIC to char in ecc6,but there is some error about it,following is my code ,please give me some cue to solve it ,thank you very much !
data : i type i value 65.
data : x type x.
data:c type c.
field-symbols : <fc> type c.
move i to x.
assign x to <fc> casting type c.
move <fc> to c.
write c.
‎2007 Dec 02 9:39 AM
hi~all
The question is not still solved ,i am continue try it,thank you!
‎2007 Dec 02 9:45 AM
‎2007 Dec 02 10:45 AM
Hi,
Check this, it is working for me.
Report ZTEST.
*From A to 65
data : char value 'A'.
field-symbols : <fs> type x.
data : int type i.
assign char to <fs> casting.
move <fs> to int.
write int.
*From 66 to B
data : int1 type i value 66.
data : x type x.
field-symbols : <fs1> type c.
move int1 to x.
assign x to <fs1> casting type c.
move <fs1> to char.
write char.Regards,
Satish
‎2007 Dec 06 12:44 PM
Hi~all
thank you your demo first.
the first example is not problem here
but second exmple take place some error message ,the following is error describe:
the length of "X" in bytes must be a multiple of the size a unicode
character(regardless of the of the unicode character)