The FileBaseName function returns a string containing the name of the table file currently being read, without path or extension.
Syntax:
FileBaseName()
LOAD *, filebasename( ) as X from
C:\UserFiles\abc.txt