SOURCEFILE Function

Purpose

Returns a nonvarying character string that is the name of the containing file.

Syntax

SOURCEFILE()

Description

SOURCEFILE returns a nonvarying character string that contains the name of the file where the function is invoked.

Note: SOURCEFILE can be used in restricted expressions.

Examples

SOURCEFILE()

Restrictions

As the returned nonvarying character string is system dependent, it should only be used for debugging and tracing.