Hallo Patrick, and all,
I've just seen from your correspondance that you do have a much deeper Java knowledge than I will ever have. What I'm currenlty seeking for is to implement a Packed class, with two constructors: Packed(ndigs=byte) Packed(ndigs=byte, ndec=byte) for emulating IBM PL/I and/or COBOL Decimal Packed values (with each digit represented by a half byte, and the last half byte containing the Hex 'C' (or 'F') for positive values, and Hex 'D' for negative values.. From some ancient correcpondance with Mike I seem to remember that he told me that the C++ version of his BigDecimal class already has IBM Packed representations in the Code, but the NetRexx Version of BigDecimal has it not. I downloaded Mike's BigDecimal (NetRexx version) some time ago from Speleotrove, just for interest, have been impressed by the algorthm's provided, but did never go into any details, and don't want to get into any Details. My questions now are. 1.) Does such a representation already exist somewhere in an existing Java/NetRexx Class? 2.) What do you think of this approach ? The purpose of this would be to be able to READ/WRITE any IBM mainframe Data Structure, as specified by a proper PL/I INCLUDE File (or COBOL COPY BOOK) transparently. I'm actually generating one NetRexx Java Bean (using NetRexx indirect properties) for each original PL/I or COBOL Data Structure (with the class name beeing the Name of the PL/I Include File / COBOL COPY Book name). Having said that, I'm asking for your advise wether you think that would be the right way to go. Thomas. PS: Patric, are you actually located in Germany ? It look's like from your mail adress. -- Thomas Schneider (www.thsitc.com) _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/
Thomas Schneider, Vienna, Austria (Europe) :-)
www.thsitc.com www.db-123.com |
Thomas,
I am sure I have told this numerous times already, but JZOS IBM: JZOS Java Launcher and Toolkit Overview has exaclty what you need. This support is independent of z/OS api's, so it can be used anywhere. I am told BigDecimal also has support for zoned and packed numbers. best regards, René. On 31 jul 2011, at 14:19, Thomas Schneider wrote:
_______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
In reply to this post by ThSITC
Hello Rene, and all,
1.) Maybe I did express my wishes & knowledge wrong in my first letter: a) According to my knowledge, the current NetRexx Language class Rexx does *not* support IBM PACKED (nor maybe ZONED Fields). b) according to the latest info I did get from MFC, some time ago, MFC's NetRexx implementation of BigDecimal doesn't either. c) wether Java's implementation does -- I don't have any idea. d) I simply want to DEFINE a Java (NetRexx) class named Packed, for clratity of reading the source, with the syntax&semantics of: abc=Packed(3) -- an IBM-like Packed Field with 3 digits def=Packed(5,2) -- an IBM-like Packed Field with 5 digits, 2 of them are decimals Packed will, obviously, extend class Bigdecimal and BigInt, as required. The whole purpose of this current effort is to be able to REMOTEDLY read/write (for instance, on a Windows/Unix Machine) an IBM mainframe file ... ;-) 2.) This implementation must be totally independent of any IBM-dependent ones. 3.) Mike said, long time ago, that his C (or was it C++??) implementation of BigDecimal does cater PACKED Fields, but his latest Java Version (implemented in NetRexx, with options -format for the Sun guys) does NOT. 4.) This has also been, long time ago, the reason why I did ask wether the NetRexx Class 'Rexx' might be extended.... :-) Comprendi, per favore? Thomas Schneider. ===================================================================================================== Am 31.07.2011 14:19, schrieb Thomas Schneider: > Hallo Patrick, and all, > > I've just seen from your correspondance that you do have a much > deeper Java knowledge than I will ever have. > What I'm currenlty seeking for is to implement a Packed class, with > two constructors: > > Packed(ndigs=byte) > Packed(ndigs=byte, ndec=byte) > > for emulating IBM PL/I and/or COBOL Decimal Packed values (with each > digit represented by a half byte, > and the last half byte containing the Hex 'C' (or 'F') for positive > values, and Hex 'D' for negative values.. > > From some ancient correcpondance with Mike I seem to remember that he > told me that > the C++ version of his BigDecimal class already has IBM Packed > representations in the Code, but the > NetRexx Version of BigDecimal has it not. I downloaded Mike's > BigDecimal (NetRexx version) some time > ago from Speleotrove, just for interest, have been impressed by the > algorthm's provided, but did > never go into any details, and don't want to get into any Details. > > My questions now are. > > 1.) Does such a representation already exist somewhere in an existing > Java/NetRexx Class? > 2.) What do you think of this approach ? > > The purpose of this would be to be able to READ/WRITE any IBM > mainframe Data Structure, as > specified by a proper PL/I INCLUDE File (or COBOL COPY BOOK) > transparently. > > I'm actually generating one NetRexx Java Bean (using NetRexx indirect > properties) for each original > PL/I or COBOL Data Structure (with the class name beeing the Name of > the PL/I Include File / COBOL COPY Book name). > > Having said that, I'm asking for your advise wether you think that > would be the right way to go. > > Thomas. > > PS: Patric, are you actually located in Germany ? It look's like from > your mail adress. > -- Thomas Schneider (www.thsitc.com) _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/
Thomas Schneider, Vienna, Austria (Europe) :-)
www.thsitc.com www.db-123.com |
Thomas,
I see your requirement, but I don't understand what you mean with (2) - IBM has catered for this, in a free package that you can download, and which is included in the z/OS Java implementation. It can automatically generate Java structures, including packed and zoned decimals from COBOL copybooks and HLASM ADATA files. Why must this implementation be independent of an IBM one that fits your requirements? And yes, you can extend the Rexx class any way you want, it is not final, and even if it was, you have the source now. best regards, René. On 1 aug 2011, at 15:56, Thomas Schneider wrote: > Hello Rene, and all, > 1.) Maybe I did express my wishes & knowledge wrong in my first letter: > > a) According to my knowledge, the current NetRexx Language class Rexx does *not* support IBM PACKED (nor maybe ZONED Fields). > b) according to the latest info I did get from MFC, some time ago, MFC's NetRexx implementation of BigDecimal doesn't either. > c) wether Java's implementation does -- I don't have any idea. > d) I simply want to DEFINE a Java (NetRexx) class named Packed, for clratity of reading the source, with the syntax&semantics of: > > abc=Packed(3) -- an IBM-like Packed Field with 3 digits > def=Packed(5,2) -- an IBM-like Packed Field with 5 digits, 2 of them are decimals > > Packed will, obviously, extend class Bigdecimal and BigInt, as required. > > The whole purpose of this current effort is to be able to REMOTEDLY read/write (for instance, on a Windows/Unix Machine) > an IBM mainframe file ... ;-) > > 2.) This implementation must be totally independent of any IBM-dependent ones. > 3.) Mike said, long time ago, that his C (or was it C++??) implementation of BigDecimal does cater PACKED Fields, but > his latest Java Version (implemented in NetRexx, with options -format for the Sun guys) does NOT. > > 4.) This has also been, long time ago, the reason why I did ask wether the NetRexx Class 'Rexx' might be extended.... :-) > > Comprendi, per favore? > > Thomas Schneider. > ===================================================================================================== > > > Am 31.07.2011 14:19, schrieb Thomas Schneider: >> Hallo Patrick, and all, >> >> I've just seen from your correspondance that you do have a much deeper Java knowledge than I will ever have. >> What I'm currenlty seeking for is to implement a Packed class, with two constructors: >> >> Packed(ndigs=byte) >> Packed(ndigs=byte, ndec=byte) >> >> for emulating IBM PL/I and/or COBOL Decimal Packed values (with each digit represented by a half byte, >> and the last half byte containing the Hex 'C' (or 'F') for positive values, and Hex 'D' for negative values.. >> >> From some ancient correcpondance with Mike I seem to remember that he told me that >> the C++ version of his BigDecimal class already has IBM Packed representations in the Code, but the >> NetRexx Version of BigDecimal has it not. I downloaded Mike's BigDecimal (NetRexx version) some time >> ago from Speleotrove, just for interest, have been impressed by the algorthm's provided, but did >> never go into any details, and don't want to get into any Details. >> >> My questions now are. >> >> 1.) Does such a representation already exist somewhere in an existing Java/NetRexx Class? >> 2.) What do you think of this approach ? >> >> The purpose of this would be to be able to READ/WRITE any IBM mainframe Data Structure, as >> specified by a proper PL/I INCLUDE File (or COBOL COPY BOOK) transparently. >> >> I'm actually generating one NetRexx Java Bean (using NetRexx indirect properties) for each original >> PL/I or COBOL Data Structure (with the class name beeing the Name of the PL/I Include File / COBOL COPY Book name). >> >> Having said that, I'm asking for your advise wether you think that would be the right way to go. >> >> Thomas. >> >> PS: Patric, are you actually located in Germany ? It look's like from your mail adress. >> > > > -- > Thomas Schneider (www.thsitc.com) > _______________________________________________ > Ibm-netrexx mailing list > [hidden email] > Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ > _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
Hello Rene, and all,
as a Software Author for a couple of packages to be released soon I do, at the minute, want and like to be INDEPENDENT for any other Vendor. I'm currently in Negotiation with IBM Austria, Oracle Munich, and HP there in Vienna about my PP. I simply need to know what's in the NetRexx Rexx class, the IBM BigDecimal Software implementation, the Sun Bigdecimal, etc. I don't like to re-use the NetRexx Rexx class, as it is, obviously, as Patric described out-dated. I am, however, open to any and all suggestions. But I simply would like to implement my Packed class independent of the current NetRexx Rexx class, when possible at all, as this class seems to be DEPRECATED a bit by Mike F. Cowlishaw's and Sun's later work (namely BigDecimal, in both variations) I will now go ahead to read all the details as documented, and see what decisions might be appropriate. Kind regards, Thomas. ========================================================================================================== Am 01.08.2011 23:40, schrieb René Jansen: > Thomas, > > I see your requirement, but I don't understand what you mean with (2) - IBM has catered for this, in a free package that you can download, and which is included in the z/OS Java implementation. It can automatically generate Java structures, including packed and zoned decimals from COBOL copybooks and HLASM ADATA files. Why must this implementation be independent of an IBM one that fits your requirements? > > And yes, you can extend the Rexx class any way you want, it is not final, and even if it was, you have the source now. > > best regards, > > René. > > On 1 aug 2011, at 15:56, Thomas Schneider wrote: > >> Hello Rene, and all, >> 1.) Maybe I did express my wishes& knowledge wrong in my first letter: >> >> a) According to my knowledge, the current NetRexx Language class Rexx does *not* support IBM PACKED (nor maybe ZONED Fields). >> b) according to the latest info I did get from MFC, some time ago, MFC's NetRexx implementation of BigDecimal doesn't either. >> c) wether Java's implementation does -- I don't have any idea. >> d) I simply want to DEFINE a Java (NetRexx) class named Packed, for clratity of reading the source, with the syntax&semantics of: >> >> abc=Packed(3) -- an IBM-like Packed Field with 3 digits >> def=Packed(5,2) -- an IBM-like Packed Field with 5 digits, 2 of them are decimals >> >> Packed will, obviously, extend class Bigdecimal and BigInt, as required. >> >> The whole purpose of this current effort is to be able to REMOTEDLY read/write (for instance, on a Windows/Unix Machine) >> an IBM mainframe file ... ;-) >> >> 2.) This implementation must be totally independent of any IBM-dependent ones. >> 3.) Mike said, long time ago, that his C (or was it C++??) implementation of BigDecimal does cater PACKED Fields, but >> his latest Java Version (implemented in NetRexx, with options -format for the Sun guys) does NOT. >> >> 4.) This has also been, long time ago, the reason why I did ask wether the NetRexx Class 'Rexx' might be extended.... :-) >> >> Comprendi, per favore? >> >> Thomas Schneider. >> ===================================================================================================== >> >> >> Am 31.07.2011 14:19, schrieb Thomas Schneider: >>> Hallo Patrick, and all, >>> >>> I've just seen from your correspondance that you do have a much deeper Java knowledge than I will ever have. >>> What I'm currenlty seeking for is to implement a Packed class, with two constructors: >>> >>> Packed(ndigs=byte) >>> Packed(ndigs=byte, ndec=byte) >>> >>> for emulating IBM PL/I and/or COBOL Decimal Packed values (with each digit represented by a half byte, >>> and the last half byte containing the Hex 'C' (or 'F') for positive values, and Hex 'D' for negative values.. >>> >>> From some ancient correcpondance with Mike I seem to remember that he told me that >>> the C++ version of his BigDecimal class already has IBM Packed representations in the Code, but the >>> NetRexx Version of BigDecimal has it not. I downloaded Mike's BigDecimal (NetRexx version) some time >>> ago from Speleotrove, just for interest, have been impressed by the algorthm's provided, but did >>> never go into any details, and don't want to get into any Details. >>> >>> My questions now are. >>> >>> 1.) Does such a representation already exist somewhere in an existing Java/NetRexx Class? >>> 2.) What do you think of this approach ? >>> >>> The purpose of this would be to be able to READ/WRITE any IBM mainframe Data Structure, as >>> specified by a proper PL/I INCLUDE File (or COBOL COPY BOOK) transparently. >>> >>> I'm actually generating one NetRexx Java Bean (using NetRexx indirect properties) for each original >>> PL/I or COBOL Data Structure (with the class name beeing the Name of the PL/I Include File / COBOL COPY Book name). >>> >>> Having said that, I'm asking for your advise wether you think that would be the right way to go. >>> >>> Thomas. >>> >>> PS: Patric, are you actually located in Germany ? It look's like from your mail adress. >>> >> >> -- >> Thomas Schneider (www.thsitc.com) >> _______________________________________________ >> Ibm-netrexx mailing list >> [hidden email] >> Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ >> > -- Thomas Schneider (www.thsitc.com) _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/
Thomas Schneider, Vienna, Austria (Europe) :-)
www.thsitc.com www.db-123.com |
Free forum by Nabble | Edit this page |