On 2025-05-02 18:45, Andrew Rowley wrote:
On 2/05/2025 1:22 pm, Tom Ross wrote:
Hmm, if you don't want a sign, why have an 'S' in the PICTURE clause?
Signed:
05 SIGNED-ITEM PIC S9(x) COMP-3.
Unsigned:
05 UNSIGNED-ITEM PIC 9(x) COMP-3.
I guess I am too close to COBOL, but signed and unsigned are easy in
COBOL!
What's the difference in the representation?
Is unsigned 1234:
0x01234F
or
0x001234
To be handled by the hardware, the least-significant nibble
must contain the sign.
Unsigned would contain a plus sign in this nibble.
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN