GENERATE-UUID
DEFINE VARIABLE MyUUID AS RAW NO-UNDO.DEFINE VARIABLE Base64UUID AS CHARACTER NO-UNDO.ASSIGNMyUUID = GENERATE-UUIDBase64UUID = BASE64-ENCODE(MyUUID).You can use the GENERATE-UUID function with the BASE64-ENCODE function to generate a UUID and convert it to use in a Base64 character index. You can also remove the two trailing Base64 pad characters to reduce the size of the UUID. For example:
SUBSTRING(BASE64-ENCODE(GENERATE-UUID), 1, 22)
© 2012 Progress Software Corporation and/or its subsidiaries or affiliates. |