Share via


SYS(2015) - Unique Procedure Name

Returns a unique 10-character procedure name that begins with an underscore followed by a combination of letters and numbers.

SYS(2015)

Return Value

Character

Remarks

Use SYS(2015) to create unique names for items such as procedures, functions, files, tables or cursors. You can add a prefix or change the length of the name using the SUBSTR( ) function. For example, the code "tmp"+SUBSTR(SYS(2015),4,3) returns tmpCIOS.

The name that SYS(2015) returns is created from the system date and system time. Calling SYS(2015) more than once during the same millisecond interval returns a unique character string.

See Also

Reference

SYS( ) Functions Overview

SYS(3) - Legal File Name

SYS(1) - Julian System Date