HP OpenVMS Systems

ask the wizard
Content starts here

uuid_create? sys$create_uid? GUID? UUID?

» close window

The Question is:

In http://h71000.www7.hp.com/wizard/wiz_7331.html,someone asked:
Is there a callable interface available under OpenVMS or within a layered
 product that will generate a 128-bit UUID?
I have looked at the Compaq DCE for OpenVMS VAX and OpenVMS Alpha Reference
 Guide but there only appears to be a command line utility for doing this. I
 need to be able to do this from within a C program.
The Wizard's answer was:
My new question is: where is this uuid_create documented? I've searched through
 the DECCRTL, STARLET and LIB_C header libraries and couldn't find it, nor
 could I find any other OpenVMS documentation page that included uuid_create.
Since the answer appears to be that uuid_create is of doubtful existence (as
 implied by the question mark in the answer), I'd like to get a reply to the
 original question. Alternatively, I'd like to find out how to get the IEEE/MAC
 address of an Alpha Ope
nVMS 7.3 system, so that it could be used to generate a UUID using the spec in
 the IETF Internet Draft dated 4-Feb-1998. Presumably the address should be
 obtainable by a call to system services like sys$getsyi or sys$getdvi, and it
 should not depend on wh
ether TCP/IP is installed or not, but I haven't been able to locate detailed
 information in this area.

The Answer is :

  uuid_create is a DCE-related call, as the question specified DCE.
  From OpenVMS, you can use the sys$create_uid system service.

answer written or last revised on ( 17-DEC-2003 )

» close window