And this too
http://www.rpgpgm.com/2014/04/add-1-to-get-b-your-code.html
Paul
-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of John
Yeung
Sent: Wednesday, June 17, 2015 5:20 PM
To: Midrange Systems Technical Discussion
Subject: Re: The case of outnumbered numerator
On Wed, Jun 17, 2015 at 3:56 PM, Jon Paris <jon.paris@xxxxxxxxxxxxxx> wrote:
I was suggesting that perhaps going all the way to base 36 was overkill
John and that base 16 might provide a satisfactory, and far easier to
implement, alternative.
Well, he did *specifically* mention that he wanted to preserve EBCDIC order,
and standard hex (expressed as digits '0' through 'F') doesn't do that.
It was pretty clear from his description of the problem that the field is
currently being monotonically incremented, and he wants to be able to
continue to do so (that is, not go backwards).
As to "far easier"... well, some folks already mentioned some ideas earlier
in the thread to do exactly what Gad was asking, and they didn't strike me
as too difficult. No more difficult than using system APIs (actually quite a
bit easier in my opinion). Regardless, whatever he comes up with will
presumably be wrapped up in a service program or similarly easy-to-use
package, so any initial "implementation cost"
gets amortized away anyway. (At least, this seems to be one of the standard
arguments for using RPG as an implementation language over more expressive
languages.)
John Y.
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe,
or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at
http://archive.midrange.com/midrange-l.
As an Amazon Associate we earn from qualifying purchases.