Generate the UUID using COBOL.
Posted: Tue Aug 30, 2016 5:38 pm
Hi,
For one of the requirement, I needed to generate the UUID (Universal Unique Identifier) based on the standard listed on this link: https://www.ietf.org/rfc/rfc4122.txt - using version 4 of the generation algorithm.
This needs to be done in Mainframe cobol module. I tried to search for generic cobol/db2 functions which can be used for this, but couldn't find any. Is any one of you aware of any such cobol function?
We are thinking to create our own module to do this using the GENERATE_UNIQUE function of DB2, but that will be also need unnecessary work to convert it into UUID format. I would believe that IBM mostly provides such utility in Cobol/Assmbler/DB2 as such functions are readily available in Java and this is an International standard.
Thanks in advance for any help :-)
For one of the requirement, I needed to generate the UUID (Universal Unique Identifier) based on the standard listed on this link: https://www.ietf.org/rfc/rfc4122.txt - using version 4 of the generation algorithm.
This needs to be done in Mainframe cobol module. I tried to search for generic cobol/db2 functions which can be used for this, but couldn't find any. Is any one of you aware of any such cobol function?
We are thinking to create our own module to do this using the GENERATE_UNIQUE function of DB2, but that will be also need unnecessary work to convert it into UUID format. I would believe that IBM mostly provides such utility in Cobol/Assmbler/DB2 as such functions are readily available in Java and this is an International standard.
Thanks in advance for any help :-)