Re: Java Packed Decimal

2006-08-11 Thread Clark F Morris
On 10 Aug 2006 17:30:49 -0700, in bit.listserv.ibm-main you wrote: In [EMAIL PROTECTED], on 08/09/2006 at 04:24 PM, Clark Morris [EMAIL PROTECTED] said: As I understood Chuck Stevens who was the Unisys COBOL representative to ANSI X3J4 and a member of the technical support team for their

Re: Java Packed Decimal

2006-08-10 Thread Shmuel Metz (Seymour J.)
In [EMAIL PROTECTED], on 08/09/2006 at 04:24 PM, Clark Morris [EMAIL PROTECTED] said: As I understood Chuck Stevens who was the Unisys COBOL representative to ANSI X3J4 and a member of the technical support team for their compilers, Burroughs large scale B7500 and beyond which I believe became

Re: Java Packed Decimal

2006-08-09 Thread Clark Morris
: Java Packed Decimal In [EMAIL PROTECTED], on 08/01/2006 at 09:16 AM, Thompson, Steve (SCI TW) [EMAIL PROTECTED] said: I must assume that UNISYS uses PD. Unisys has or had a successor to the B6500 family, so they must have supported PD. The 1108 didn't have PD, and I don't know whether

Re: Java Packed Decimal

2006-08-02 Thread Shmuel Metz (Seymour J.)
In [EMAIL PROTECTED], on 08/01/2006 at 09:16 AM, Thompson, Steve (SCI TW) [EMAIL PROTECTED] said: I must assume that UNISYS uses PD. Unisys has or had a successor to the B6500 family, so they must have supported PD. The 1108 didn't have PD, and I don't know whether the Unisys successor added

Re: Java Packed Decimal

2006-08-02 Thread Ray Mullins
.) Sent: Wednesday August 02 2006 06:56 To: IBM-MAIN@BAMA.UA.EDU Subject: Re: Java Packed Decimal In [EMAIL PROTECTED], on 08/01/2006 at 09:16 AM, Thompson, Steve (SCI TW) [EMAIL PROTECTED] said: I must assume that UNISYS uses PD. Unisys has or had a successor to the B6500 family, so

Re: Java Packed Decimal

2006-08-01 Thread Jan MOEYERSONS
Java does not have a packed decimal data type. I am looking for classes or routines that will allow the Java programs to process the paced decimal data. Google's first hit on packed decimal java: http://forum.java.sun.com/thread.jspa?threadID=450146messageID=2043372 Isn't that difficult, is

Re: Java Packed Decimal

2006-08-01 Thread Bernd Oppolzer
I had the same problem some time ago with C/370, when DECIMAL was not supported or was not an option for the installation. So I have some routines to handle packed decimal in C. I would suggest that you call a JNI (native) routine, written in C or another compiler language to handle decimal

Java Packed Decimal

2006-08-01 Thread Don Higgins
Benjamin, all Yes there are Java J2SE compatible open source routines available as part of the www.z390.org portable mainframe assembler and emulator project which provide standard operations plus conversion between all the mainframe data types including: 31 digit packed decimal; floating

Re: Java packed decimal

2006-08-01 Thread Benjamin White
I found half of what I want in com.dovetail.jzos.ByteUtil.unpackLong(). Now I just need a longPacked() method. From: Jeffrey D. Smith [EMAIL PROTECTED] Reply-To: IBM Mainframe Discussion List IBM-MAIN@BAMA.UA.EDU To: IBM-MAIN@BAMA.UA.EDU Subject: Re: Java packed decimal Date: Mon, 31 Jul

Re: Java Packed Decimal

2006-08-01 Thread Benjamin White
Yes, I also saw that page, My interest was data type conversions to perform calculations, not just display the number. From: Jan MOEYERSONS [EMAIL PROTECTED] Reply-To: IBM Mainframe Discussion List IBM-MAIN@BAMA.UA.EDU To: IBM-MAIN@BAMA.UA.EDU Subject: Re: Java Packed Decimal Date: Tue, 1

Java Packed Decimal

2006-08-01 Thread Thompson, Steve (SCI TW)
I thought I might point out something in this Packed Decimal discussion. IBM mainframes are not the only computer systems to use PD! Wang VS systems (ASCII based) also used PD. Burroughs, if memory serves me correctly, also used PD. I must assume that UNISYS uses PD. And again, if memory serves

Re: Java Packed Decimal

2006-08-01 Thread Ray Mullins
To: IBM-MAIN@BAMA.UA.EDU Subject: Java Packed Decimal I thought I might point out something in this Packed Decimal discussion. IBM mainframes are not the only computer systems to use PD! Wang VS systems (ASCII based) also used PD. Burroughs, if memory serves me correctly, also used PD. I must assume

Re: Java Packed Decimal

2006-08-01 Thread Clark Morris
On 1 Aug 2006 06:17:04 -0700, in bit.listserv.ibm-main you wrote: I thought I might point out something in this Packed Decimal discussion. IBM mainframes are not the only computer systems to use PD! Wang VS systems (ASCII based) also used PD. Burroughs, if memory serves me correctly, also used

Re: Java Packed Decimal

2006-08-01 Thread Rob Wunderlich
On Mon, 31 Jul 2006 08:04:35 -0500, Benjamin White [EMAIL PROTECTED] wrote: Where is some code to process Z/Series packed decimal? I know it is not a primative data type. Is there any conversion routines? You might want to take a look at the JRIO classes as referenced by this post:

Java Packed Decimal

2006-07-31 Thread Benjamin White
Where is some code to process Z/Series packed decimal? I know it is not a primative data type. Is there any conversion routines? -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [EMAIL

Re: Java Packed Decimal

2006-07-31 Thread Jeffrey D. Smith
= -Original Message- From: Benjamin White [EMAIL PROTECTED] Sent: 7/31/2006 7:04 AM To: IBM-MAIN@BAMA.UA.EDU IBM-MAIN@BAMA.UA.EDU Subject: Java Packed Decimal Where is some code to process Z/Series packed decimal? I know it is not a primative

Re: Java Packed Decimal

2006-07-31 Thread Brian Peterson
Here's what I did. www.google.com search criteria: site:ibm.com java packed decimal Most interesting hit (based upon 15 seconds of analysis) was a web page apparently authored by Mike Cowlishaw (IBM) regarding all of the issues surrounding attempting to use floating point arithmetic

Re: Java Packed Decimal

2006-07-31 Thread john gilmore
The standard device for giving Java access to packed-decimal data is to convert these data into double-precision (eight-byte) BFP values. This is always possible, and to the extent that Java is good at any arithmetic, it is good at floating-point arithmetic, which it uses very heavily indeed.

Re: Java Packed Decimal

2006-07-31 Thread Kirk Wolf
Subsituting BFP for decimals may be standard, but it is usually a bad idea (as are many standard programming practices) :-( The standard java package java.math contains a BigDecimal class, which is commonly used with JDBC drivers for Decimal columns. IBM's JDK has an alternative version.

Re: Java Packed Decimal

2006-07-31 Thread Thompson, Steve (SCI TW)
-Original Message- From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On Behalf Of Kirk Wolf Sent: Monday, July 31, 2006 2:12 PM To: IBM-MAIN@BAMA.UA.EDU Subject: Re: Java Packed Decimal SNIP Fortunately, there's not too much packed/zoned decimal data on mainframes any more

Re: Java Packed Decimal

2006-07-31 Thread Tom Marchant
On Mon, 31 Jul 2006 14:12:15 -0500, Kirk Wolf [EMAIL PROTECTED] wrote: Fortunately, there's not too much packed/zoned decimal data on mainframes any more :-) I don't agree that it is fortunate. Decimal is the number system used by the vast majority of humanoid life forms, and IMHO binary is a

Re: Java Packed Decimal

2006-07-31 Thread Benjamin White
Mainframe Discussion List IBM-MAIN@BAMA.UA.EDU To: IBM-MAIN@BAMA.UA.EDU Subject: Re: Java Packed Decimal Date: Mon, 31 Jul 2006 14:12:15 -0500 Subsituting BFP for decimals may be standard, but it is usually a bad idea (as are many standard programming practices) :-( The standard java package java.math

Re: Java packed decimal

2006-07-31 Thread Jeffrey D. Smith
-Original Message- From: john gilmore [EMAIL PROTECTED] Sent: 7/31/2006 3:18 PM To: IBM-MAIN@BAMA.UA.EDU IBM-MAIN@BAMA.UA.EDU Subject: Re: Java packed decimal Benjamin White writes: | Yes, I have been considering extending

Re: Java Packed Decimal

2006-07-31 Thread Clark Morris
On 31 Jul 2006 08:31:48 -0700, in bit.listserv.ibm-main you wrote: = -Original Message- From: Benjamin White [EMAIL PROTECTED] Sent: 7/31/2006 7:04 AM To: IBM-MAIN@BAMA.UA.EDU IBM-MAIN@BAMA.UA.EDU Subject: Java Packed Decimal Where is some code