Matt Hogstrom wrote: >https://github.com/walmartlabs/zUID >Courtesy of Walmart
Tony Harminc wrote: >Wouldn't want to bump into that pending patent >from Walmart... Walmart licensed the code they're sharing under the Apache License 2.0: https://github.com/walmartlabs/zUID/blob/master/LICENSE Quoting Wikipedia: "The Apache License 2.0 makes sure that the user does not have to worry about infringing any patents by using the software. The user is granted a license to any patent that covers the software. This license is terminated if the user sues anyone over patent infringement related to this software. This condition is added in order to prevent patent litigations." I commend Walmart for doing this. Without filing for a patent, somebody else (who might be much less generous) could grab it. In addition to the suggestions already offered, you could INVOKE your favorite Java UUID generator method from COBOL. Java itself (since Java 1.5) includes a java.util.UUID class which can generate most variants and versions of RFC 4122 UUIDs, but unfortunately not the popular variant 2 version 5. There are many version 5 code samples available, including here (tutorial with a further link to a MIT Licensed code sample): https://www.baeldung.com/java-uuid By the way, in case anybody is wondering, there's a reference to UUIDs in the z/OS Communications Server documentation here: https://www.ibm.com/support/knowledgecenter/en/SSLTBW_2.4.0/com.ibm.zos.v2r4.halx001/nscsuu.htm However, based on some other reading, presumably UUID@GEN only supports the circa 1988 Apollo Network Computing System (NCS) UUID format, which barely carried forward into IETF RFC 4122 as variant 0. If you've got something using this program, OK, but I wouldn't use it for new code. I should reference Peter Dennler (alias Don Krawacki) at Credit Suisse for sharing some UUID-related work. Here are some links (German language mainly): http://www.krawacki.ch/pdf/UUID_ETOD_V22d.pdf http://www.krawacki.ch/samples_ass/YYUUID.txt http://www.krawacki.ch/pdf/Time_V21.pdf -------------------------------------------------------------------------------------------------------- Timothy Sipples IT Architect Executive, Industry Solutions, IBM Z & LinuxONE -------------------------------------------------------------------------------------------------------- E-Mail: sipp...@sg.ibm.com ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN