The following example deletes the file /home/fexpuser/tests/out1 if it exists. The command string then creates a new /home/fexpuser/tests/out1 file to contain the exported records from the SELECT statement.
.SYSTEM 'rm -f /home/fexpuser/tests/out1'; .BEGIN EXPORT; SEL * FROM table1; .EXPORT OUTFILE /home/fexpuser/tests/out1; .END EXPORT;