The decimal instructions treat F zones as positive.

-- 
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3
עַם יִשְׂרָאֵל חַי
נֵ֣צַח יִשְׂרָאֵ֔ל לֹ֥א יְשַׁקֵּ֖ר



________________________________________
From: IBM Mainframe Discussion List on behalf of Andrew Rowley
Sent: Monday, April 28, 2025 7:15 PM
To: [email protected]
Subject: Re: Packed decimal sign nibbles


External Message: Use Caution


On 29/04/2025 2:32 am, Schmitt, Michael wrote:
> "F" is unsigned, however, in IBM Enterprise COBOL for z/OS: when you compile 
> with NUMPROC(PFD) it is *very* strict: there are only three valid signs:
>
> C: positive
> D: negative
> F: unsigned

Interesting. What is the practical effect of an unsigned number? Can you
do arithmetic with it? Or is it just treated as a positive number?

--
Andrew Rowley
Black Hill Software

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN




----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to