Set import file name

Command group Flag affected Reversible Execute on client Platform(s)
Importing and Exporting YES YES NO All


Set import file name {file-name}


This command specifies the name of the import file. The flag is set if the import file is successfully selected. You use the current import file in any subsequent Import field from file commands.

If you use Set import file name in a reversible block, the import file is closed when the method containing the reversible block terminates.


; import from a csv file called myImport.txt in the root of your omnis tree
Calculate lImportPath as con(sys(115),'myImport.txt')
Set import file name {[lImportPath]}
Prepare for import from file {Delimited (commas)}
Import data lImportList
End import
Close import file