Jacques,

Here's an example of generating a uuid using the userno and time. Note the line wrap on the "RESULT =" line:

EQU TD$UTCSECS LIT '(SYSTEM(99))'  ; * seconds since 1970-01-01
EQU TD$MILLIS LIT '((SYSTEM(12) * 1000) "R%3")'
ERRCODE = DIGEST("MD5", @USERNO:TD$UTCSECS:TD$MILLIS, 1, RESULT)
RESULT = DOWNCASE(OCONV(RESULT, "MX"))"########-####-####-####-############"
DISPLAY RESULT
END


Jacques G. wrote:
Hello,

I wanted to know if a Named common is visible from every session on the server ?
I need to generate UUID's Universe doesn't have a function that does this but 
Unix has a : uuidgen program I can execute to capture UUID's.

The problem is that some of our programs run within a TRANSACTION block and 
cannot execute Unix shell commands within a TRANSACTION block.

I though that I would have a phantom process that could run in background 
reserving UUID's for the different users and store this in a named common.

I need to avoid using a file for this as to avoid an I/O bottleneck for the 
same record key.

It has been years since I've used named commons.  I though that the definition 
was something like this:

COM /UUID/ UUID

The compiler accepts this definition and I can feed the UUID variable within my 
phantom process but the other process on a different port & user that attempts 
to read it is unable to do so.  It has the value zero.

If named commons don't do this, is there some kind of global variable I can set 
to do this ?

Any ideas ?


      
____________________________________________________________________________________
Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping
-------
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
-------
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to