View previous topic :: View next topic |
Author |
Message |
jajularamesh Beginner
Joined: 14 Apr 2006 Posts: 87 Topics: 33
|
Posted: Mon Mar 26, 2007 1:16 am Post subject: what kind of values a variable of Type-PIC +(11)9.9(2) hold |
|
|
can any body tell if a variable is decalred like this
05 WS-AMT1 PIC +(11)9.9(2)
what kind of values it will hold and what is the significance of declaring a variable like this.
When i checked like if a negative value is moved then value with - sign is getting displayed and positive value with + sign is getting dispalyed.
But before executing test program my understanding was that even though if we move negative value output will be displayed as positive value which is wrong.
Can any one please tell me what is the signifiance of declaring like this.. |
|
Back to top |
|
 |
dbzTHEdinosauer Supermod
Joined: 20 Oct 2006 Posts: 1411 Topics: 26 Location: germany
|
|
Back to top |
|
 |
asbhalamurrughan Beginner
Joined: 18 Jan 2005 Posts: 1 Topics: 0 Location: chennai
|
Posted: Thu Apr 12, 2007 11:19 am Post subject: |
|
|
Hi,
If you are declaring as
05 WS-AMT1 PIC +(11)9.9(2)
1. If you are moving Positive Value, It will Display +
2. If you are moving Negative Value, It will Display -
But If you are declaring as
05 WS-AMT1 PIC -(11)9.9(2)
1. If you are moving Positive Value, It will Display Blank
2. If you are moving Negative Value, It will Display -
Hope It will clarify .
Best Of Luck... |
|
Back to top |
|
 |
|
|