View previous topic :: View next topic
|
Author |
Message |
baramesh
New User
Joined: 20 May 2008 Posts: 25 Location: bangalore
|
|
|
|
Hi Forum,
Iam working on a report generation module.I have problem, I need to display the contents in comp and comp3 fields which are described below.
01 countrs- subscrts
02 usub1 pic s9(4) comp value
01 imdt -rslts
02 int-sum pic s9(5)v(2) comp3
Please suggest me the equivalent variabbles with display usage.
Thevalue in comop is -5634 and in comp3 is -9999999. |
|
Back to top |
|
|
chandu.be
New User
Joined: 17 Jul 2006 Posts: 9 Location: Bagalore
|
|
|
|
Hi,
For reporting purpose always it is suggestable to use editing variables.
For your requirement you can use the following type variables:
1. To display the value of COMP you can use 'PIC -9(4)' variable.
2. To display the value of COMP-3 you can use 'PIC -9(3).9(2)' variable.
Note that -99999 value will be displayed as -999.99
Regards,
Chandu |
|
Back to top |
|
|
vasanthkumarhb
Active User
Joined: 06 Sep 2007 Posts: 275 Location: Bang,iflex
|
|
|
|
Hi,
Code: |
For reporting purpose always it is suggestable to use editing variables.
For your requirement you can use the following type variables:
1. To display the value of COMP you can use 'PIC -9(4)' variable.
2. To display the value of COMP-3 you can use 'PIC -9(3).9(2)' variable.
Note that -99999 value will be displayed as -999.99 |
Adding to above, just move the COMP variable to a equivalent local W-S variable or to report variable and display as you wish. |
|
Back to top |
|
|
baramesh
New User
Joined: 20 May 2008 Posts: 25 Location: bangalore
|
|
|
|
Thank you every body for your valuable contributions.its working fine. |
|
Back to top |
|
|
|