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

unicode error

Former Member
0 Likes
490

Hi ,

For following syntax -

SHIFT S_AUSVN-LOW LEFT UP TO 10.

I am getting this error -

"10" must be a character-type data object (data type C, N, D, T or STRING)

How to solve this problem ?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
473

Put 10 in single quotes ...

SHIFT S_AUSVN-LOW LEFT UP TO '10'.

3 REPLIES 3
Read only

Former Member
0 Likes
474

Put 10 in single quotes ...

SHIFT S_AUSVN-LOW LEFT UP TO '10'.

Read only

Former Member
0 Likes
473

Hi,

SHIFT is a string operation and can be only used with string or character fields.

The format is :-

SHIFT <c> BY <n> PLACES.

Thanks,

Daya

Read only

Former Member
0 Likes
473

SHIFT S_AUSVN-LOW LEFT UP TO '10'.

This will try to shift the string to left till '10' Occurs in String. Just Use quotes.

If you want to shift by 10 places use:

SHIFT S_AUSVN-LOW LEFT BY 10 Places.

Regards,

Gurpreet