|
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
-----Original Message-----
From: oludare [SMTP:oludare@ix.netcom.com]
Sent: Wednesday, February 14, 2001 1:07 PM
To: MIDRANGE-L@midrange.com
Subject: Re: Mcsec in Timestamp, is it possible
FYI,
OBTAINING THE SYSTEM TIME IN MILLISECONDS
There are times when it can be handy to obtain the system time with
milliseconds - for example, when you want to create a unique
identifier for data transfers.
As an Amazon Associate we earn from qualifying purchases.
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.