cancel
Showing results for 
Search instead for 
Did you mean: 

Formatting options

Former Member
0 Kudos

Hi,

How do I specify more than 1 formatting options for a program symbol

as in the decimal and the length and right justification.

&lv_rate(.2)(8R)& doesn't work. It works if I specify only one formatting option either (.2) or (8R).

Thanks,

Arthi

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Arthi,

Try

&lv_rate(R8.2)&, it will work definately....

Cheers,

Mandeep

Former Member
0 Kudos

Sorry Folks,

None of these formatting options seem to be valid.

I've done the formatting using a subroutine.

Thanks!

Former Member
0 Kudos

Hi Arthi,

I tried &lv_rate(R8.2)& in ECC 5 and its working fine.

Thanks,

Mandeep

Former Member
0 Kudos

Hi

&lv_rate(8.2R)&. Try this one. It will definitely works

Where 8 specifies the length of the variable

2 specifies the number of decimal places

R specifies the Right-Alignment.

Thanks

Sriiiiiiii(Srikanth)

Former Member
0 Kudos

Thank you. Both (R8.2) and (8.2R) seem to be working!

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

use &lv_rate(.2R8)&

I think it works.

Gr., Frank

naimesh_patel
Active Contributor
0 Kudos

Write both formatting options like this:


&lv_rate(.2R)& 

This will give you 2 decimals and Right Justified.

Regards,

Naimesh Patel

Former Member
0 Kudos

Thanks Naimesh, but what about the length (8R)?

Rgds..

naimesh_patel
Active Contributor
0 Kudos

Try like this:


&w_menge+0(8R.2)&

Regards,

Naimesh Patel

Former Member
0 Kudos

Thank Naimesh, but its doesn't seem to accept such formatting.

Error: "Invalid formatting"

I'm trying to format it using a PERFORM.

I have other things to do in the subroutine, so can club this too.

Thanks anyways.