Start of change

UUID4

The UUID4 function returns a 36-character alphanumeric string that is a version 4 universally unique identifier(UUID).

This intrinsic function is introduced in Enterprise COBOL Version 6 Release 1 with PTF for APAR PH20081.

The function type is alphanumeric.

Format

Read syntax diagramSkip visual syntax diagramFUNCTION UUID4

Example

The following COBOL program fragment produces output like 'UUID4: 4ed161b5-0d3c-4f06-8381-5f14678e13da', with subsequent executions that are producing different UUID values.

DISPLAY "UUID4: " FUNCTION UUID4

End of change