Ken Brown wrote: > We are using jbase 3.4 but will upgrade soon. > > I would like to create a unique record id for a heavily used file > without the need to read a number off a stack, lock it and increment > it before writing away. > > I was thinking of using PORT_DATE()_TIME() but as the user may write > to this file many times within a routine TIME() SYSTEM(12) or SYSTEM > (1007) do not carry sufficient precision. > > I tested this by :- > > FOR X=1 TO 500 > CRT PORT:" ":DATE():" ":TIME():" ":SYSTEM(9):" ":SYSTEM(12):" ":SYSTEM > (1007):" ":SYSTEM(2001) > NEXT X > > Well, I should take that back about cannot be done of course. If you add a COUNTER from COMMON space, then you will probably get away with it, but you are probably taking up more time than it is worht ;-)
Jim --~--~---------~--~----~------------~-------~--~----~ Please read the posting guidelines at: http://groups.google.com/group/jBASE/web/Posting%20Guidelines IMPORTANT: Type T24: at the start of the subject line for questions specific to Globus/T24 To post, send email to [email protected] To unsubscribe, send email to [email protected] For more options, visit this group at http://groups.google.com/group/jBASE?hl=en -~----------~----~----~----~------~----~------~--~---
