When you upgrade past 3.x, take a look at UNIQUEKEY()

----- Original Message ----- 
From: "Ken Brown" <[email protected]>
To: "jBASE" <[email protected]>
Sent: Wednesday, April 08, 2009 8:43 PM
Subject: System time


>
> 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
>
>
> Any ideas?
>
> Also, what does SYSTEM(2001) carry?
>
> Ken Brown
>
> >
> 



--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to