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

Adding Thousand/lakh/etc separator in a character variable

Former Member
0 Likes
1,525

Hi All,

I have a character varialbe which holds value as '12345.67'. Its ok but i want thousand / lakh ..etc separator to appear whenever it is required.

As in this case it should hold '12,345.67'.

So, how can i do this ?

1 ACCEPTED SOLUTION
Read only

former_member226519
Active Contributor
0 Likes
1,025

the format how amounts or dates are displayed can be customized for each user in the personnel settings.

In your report you simply WRITE yor typed variables to a CHAR variable and it will appear as defined.

Hi All,

I have a character varialbe which holds value as '12345.67'. Its ok but i want thousand / lakh ..etc separator to appear whenever it is required.

As in this case it should hold '12,345.67'.

So, how can i do this ?

3 REPLIES 3
Read only

former_member226519
Active Contributor
0 Likes
1,026

the format how amounts or dates are displayed can be customized for each user in the personnel settings.

In your report you simply WRITE yor typed variables to a CHAR variable and it will appear as defined.

Read only

Clemenss
Active Contributor
0 Likes
1,025

Hi John,

first move the character field to a numeric field of type, i.e. WRBTR, then write bach <numfield> to <character field>. If the char field is wide enough, the thousand separators will be added automatically according to user settings format.

Regards,

Clemens

Read only

Former Member
0 Likes
1,025

Use WRITE statement to move the varianle from amount variable to char variable.

Regards,

Nilesh.