FullFileName

Use this function to make the full file name.

Syntax

FullFileName (Drive, Path, Name, Ext)

Parameter

Description

Drive

Enter the drive letter, followed by a colon.

Path

Enter the full path.

Name

Enter the file name, omitting the extension.

Ext

Enter the file extension.

The system accepts a string containing the drive, path, name, and extension components of a fully qualified file name, assembles them, and returns a string that contains the full file name.

Here is an example:

MYFILENAME = FullFileName("d:","\mypath\","myfile",".ext")

In this example, MYFILENAME would contain:

"d:\mypath\myfile.ext"

Note If, in this example, \mypath had no trailing slash, the FullFileName function would have added it for you.

Here is a z/OS example:

FullFileName(,"DD:DEFLIB()","MEMBER")

In this example, the result would be:

DD:DEFLIB(MEMBER)

See also