BASENAME

Generated from C.60.01 /SYS/PUB/CICAT last modified on Thu Jan 11 09:18:52 2001

Back to Main Index


Syntax:     BASENAME(string, [suffix])

Defn:       A CI evaluator function that returns the base portion
            of an MPE or POSIX filename, minus directory or group
            and account names.  If the suffix is specified then
            it is removed from the base name if found.

Type:       String

Example:    basename('a.b.c')
Result:     A
Example:    basename('/a/b/c')
Result:     c
Example:    basename('/')
Result:     /
Example:    basename('*feq')
Result:     *FEQ
Example:    basename('$null')
Result:     $NULL
Example:    basename('/a/b.c', '.c')
Result:     b

Back to Main Index