Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ASSIC ERROR IN ECC6 version

Former Member
0 Likes
530

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.

4 REPLIES 4
Read only

Former Member
0 Likes
501

hi~all

The question is not still solved ,i am continue try it,thank you!

Read only

Former Member
0 Likes
501

Hi,

What is the error?

Regards,

Satish

Read only

Former Member
0 Likes
501

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

Read only

0 Likes
501

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)