On Fri, 25 May 2012 11:00:14 -0500 "Roberts, John J"
<[email protected]> wrote:

:>>If you have ICSF configured you might be able to use one of the One-Way 
:>Hash Generate Callable Services (CSNBOWH or CSNBOWH1 and CSNEOWH or 
:>CSNEOWH1)

:>I don't know if we have ICSF installed.  But even if we did, I would doubt if 
any hash function could meet my requirement #2 (uniqueness) and may even have 
trouble with #3 (PIC 9(9) result).  And of course if truncation is needed to 
meet requirement #3, this itself would probably defeat #2.

:>But I thank you for the suggestion.  If I strike out otherwise, I will ask 
the SYSPROGs about ICSF.

Depending on how many of the numbers may be generated, your best approach to
minimize storage and processing is a hash table where the value comes from an
incrementing number. If not found, add one to the number and store in the
table.

--
Binyamin Dissen <[email protected]>
http://www.dissensoftware.com

Director, Dissen Software, Bar & Grill - Israel


Should you use the mailblocks package and expect a response from me,
you should preauthorize the dissensoftware.com domain.

I very rarely bother responding to challenge/response systems,
especially those from irresponsible companies.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to