View previous topic :: View next topic |
Author |
Message |
tommy123 Beginner
Joined: 04 May 2005 Posts: 21 Topics: 11
|
Posted: Thu May 12, 2005 3:26 pm Post subject: Problem with displaying variable with signed |
|
|
Hai,
I am browsing an ouput and i see display like this "000162A" from cols 24 to 30.
When i had a look at the program which is generating this output i see the declaration for a variable which is declared
as PIC S9(5)V99 value ZERO.Can anyone tell me why is the output in the 7 th byte a EBCDIC character when it is ought to be numeric.Then i put hex on to see the value of EBCDIC A to be C1.
My understanding is that since the variable is declared as SIGN,which does not occupy any extra space & it can hold both positive & negative value,in this situation has either positive or negative sign it and it is trying to store it in the rightmost byte that is why there is a EBCDIC value in the 7 th byte.Morever if that is the case,then how do i see the exact value of the variable on the display without the EBCDIC character.Does it always happen with the SIGNED variables.
What is the exact value of the variable how do i know that . |
|
Back to top |
|
 |
Mervyn Moderator

Joined: 02 Dec 2002 Posts: 415 Topics: 6 Location: Hove, England
|
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12380 Topics: 75 Location: San Jose
|
|
Back to top |
|
 |
|
|