HP3000-L Archives

December 1998, Week 5

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Gilles Schipper <[log in to unmask]>
Reply To:
Gilles Schipper <[log in to unmask]>
Date:
Thu, 31 Dec 1998 15:37:12 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (30 lines)
At 11:08 AM 98/12/31 -0500, Nick Demos wrote:
>> As for the bit about inflexibility with respect to packed digit and being
>> too big to fit in an integer, I don't understand the problem here. Is the
>> largest number possible in a packed-decimal that much greater than that
>> possible in an integer item? I don't have the answer at hand, but I would
>> be surprised if that were an issue in many cases at all.
>>
>In a word - YES
>
>Nick D.
>

Okay, so I looked it up.

According to the COBOL manual, the most digits that can be represented in a
COMP-3 (packed decimal) item is 18.

The most digits that can be represented in a COMP (integer) item is also 18.

Can you explain how a packed-decimal field is able to hold a larger value
than an integer field?
---------------------------------------------------------------------------
Gilles Schipper
GSA Inc.
HP3000 & HP9000 System Administration Specialists
300 John Street, Box 87651   Thornhill, ON Canada L3T 7R4
Voice: 905.889.3000     Fax: 905.889.3001
Internet:  [log in to unmask]
---------------------------------------------------------------------------

ATOM RSS1 RSS2