Bill H wrote: >For those not familiar: > >SYSTEM(19) on D3: >Returns a unique item-id consisting of the current system date >in internal >format, followed immediately by the current system time in >seconds. If more >than one item-id is generated in a second, an alpha character >is appended to the item-id.
Thanks Bill, I'm not aware of a direct equivalent. TIMEDATE() returns a string, but it isn't unique. Of course one could easily write a FUNCTION that concatenated DATE() and TIME() and used named common to keep track of the last value it gave out to decide if it needed to add an alpha character and if so, which one, but that would only be unique inside the user's session, not system wide. If you wanted something that was unique system wide, you might need to go slightly further than one alpha character and you'd need to involve writing something away to a file (or at least locking something) to get coordination between sessions, and there'd be an overhead associated with that of course. It would also be quite trivial to knock up a CALLC function that obtained the value returned by the time() C runtime function which gives the number of seconds since somewhere in 1970. Computationally that would be the most efficient, but again, it wouldn't be unique system wide. Cheers, Ken Eugene Perry wrote: >> On Unidata, is there an equivalent of D3's SYSTEM(19)? -- u2-users mailing list [EMAIL PROTECTED] http://www.oliver.com/mailman/listinfo/u2-users