¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

Re: [Marketing Mail] Re: [H390-MVS] COBOL in TK4-: Handling Signed Numbers


 

¿ªÔÆÌåÓý

I agree with Joe.

You need to make sure the data is actually numbers ¨C or you will get 0C7 ¨C

?

Any number that is to be used in arithmetic calculations ?¨C should be checked ¨C to avoid an abend ¨C

-J-

?

From: [email protected] <[email protected]> On Behalf Of Joe Monk
Sent: Wednesday, January 6, 2021 5:03 PM
To: [email protected]
Subject: [Marketing Mail] Re: [H390-MVS] COBOL in TK4-: Handling Signed Numbers

?

You need to convert from zoned to packed decimal in order to do any arithmetic using those fields.

?

Not true.

?

You can do arithmetic with zoned decimal fields.

?

Joe

?

On Wed, Jan 6, 2021 at 3:41 PM Mark Waterbury <mark.s.waterbury@...> wrote:

I do not see "COMP-3" on any of your declarations.

COMP-3 is COBOL-speak for "packed decimal."

All of your fields are either character or zoned decimal.

You need to convert from zoned to packed decimal in order to do any arithmetic using those fields.

Join [email protected] to automatically receive all group messages.