HP3000-L Archives

April 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:
Wirt Atmar <[log in to unmask]>
Reply To:
Date:
Sat, 23 Apr 2005 18:03:56 EDT
Content-Type:
text/plain
Parts/Attachments:
text/plain (23 lines)
Shawn writes:

>  We have a KSAM file that is essentially straight extracted from an image
>  dataset and it has these R4 fields in it that we need to convert to Zoned
>  for use on a PC application, we can do it in COBOL or Suprtool (the latter
>  being preferred).  It's been so many years since I've even seen an R4 type
>  that I don't remember anything about it.  Any suggestions?  thanks.

Conversion could be difficult, unless your R4 values are constrained by
external circumstances to be within a specific range. An R4 datatype is a long
(64-bit) HP real number (as opposed to an IEEE real). A zoned datatype is an
integer. You can perform the conversion if you limit your real numbers to cents and
multiply everything by 100 before you store in zoned format, but as a general
rule, you can't convert reals to integers exceptionally easily.

For a complete description of how an HP real is formatted, see the help
section of the Programmer's Calculator in Equater!

Wirt Atmar

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

ATOM RSS1 RSS2