FileName - script function
The FileName function returns a string containing the name of the table file currently being read, without path but including the extension.
Syntax:
FileName()
Examples and results:
Example | Result |
---|---|
LOAD *, FileName( ) as X from C:\UserFiles\abc.txt |
Will return 'abc.txt' in field X in each record read. |