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

Replacement code for Translate statement in latest version

Former Member
0 Likes
449

Replacement code for

TABLES XXXX USING <r> LIKE <r>

TRANSLATE <r>-<fieldname> TO UPPER CASE.

<r> is a structure

2 REPLIES 2
Read only

Former Member
0 Likes
394

sample code in the latest version ....

DATA text TYPE string. 
text = `Careful with that Axe, Eugene`. 
TRANSLATE text TO UPPER CASE. 

Girish

Read only

Former Member
0 Likes
394

Hi,

TRANSLATE ... TO UPPER/LOWER CASE

TRANSLATE ... USING

The arguments of these instructions must be single fields of type C, N, D, T or STRING or purely character-type structures. There is a syntax or runtime error if arguments of a different type are passed. A subset of this function is provided with the addition IN BYTE MODE for processing byte strings – that is, operands of type X or XSTRING. A statement such as CONCATENATE a x b INTO c is thus no longer possible when a, b, and c are all character-type, but x is of type X.

TRANSLATE ... CODEPAGE ...

TRANSLATE ... NUMBER FORMAT ...

The above statements are not allowed in Unicode programs

<b>Reward points</b>

Regards