HP3000-L Archives

November 2005, Week 4

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:
John Clogg <[log in to unmask]>
Reply To:
John Clogg <[log in to unmask]>
Date:
Fri, 25 Nov 2005 11:39:49 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (42 lines)
Pete,
It is difficult to answer your question with the information you
provide.  COBOL supports several different formats for numeric data, as
do most languages.  There is zoned decimal (same as display, except the
last digit can contain a sign), packed decimal, where each half-byte
contains a decimal digit, with a sign in the last half byte (nibble),
and various binary formats including 16, 32 and 64-bit integers, and two
different floating point formats.  If you could post some before and
after data, we could possibly give you a more definite answer.

John Clogg

-----Original Message-----
From: HP-3000 Systems Discussion [mailto:[log in to unmask]] On
Behalf Of Peter Osborne
Sent: Friday, November 25, 2005 11:03 AM
To: [log in to unmask]
Subject: Packed Fields

Hi All,

I'm looking at a field in a dataset. It's an X40 field but it seems that
the 
data stored in it is server integers "packed" by a Cobol program. I've
used 
the program to change the values that are stored in this field and the
data 
is indeed changing but I cannot figure out how the data is actually
stored. 
Is there a formula on how one would unpack a field that has been packed
by a 
Cobol program?

Thanks,
Pete

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2