SetFileName

Assigns a name to the current Export file.

Syntax

bool SetFileName (StrParam)

Parameters

The file's name (without an extension).

Smart parameters are supported.

Returns

Always True.

Level

All levels.

Details

Assigns a name to the current Export file. If SetExtensionName is not called, the file extension defaults to .TXT. If you require a different file extension, use SetExtensionName.
Example
SetFileName("Export_+@BATCHID")
SetExtensionName(".txt")

	This sequence establishes a series of Export files with names such as
Export_20021231.001.txt
Export_20021231.002.txt

In contrast,
SetFileName("@BATCHID")
SetExtensionName(".txt")

will establish a series of Export files with Batch IDs only:
20021231.001.txt
20021231.002.txt