Title: Mcsec in Timestamp, is it possible

There is a MI function you can call the generates a universal unique id.

d GenUUID         pr                  extproc('_GENUUID')             
d  UUID_Template                  *   value                           
                                                                      
d UUID_Template   ds                                                  
d  UtBytPrv                     10u 0 Inz(%size(UUID_Template))       
d  UtBytAvl                     10u 0                                 
d                                8a   Inz(*allx'00')                  
d  UUID                         16a                                   

This works across multiple system.  We have 3 AS400's.  (170, 400 & 720)  Each generated 1,000,000 UUID and timestamps.  These files were combined to one.  The UUID's were unique.  We did have duplicate time stamps from different systems.  (only a couple)  The time stamps were to the milli-second. 

NEVER rely on a timestamp to be unique.

Christopher K. Bipes
Sr. Programmer/Analyst
Chris.Bipes@cross-check.com


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.