for store you can use
store tablename into filename.csv
(txt, codepage is 1252, embedded labels, delimiter is ';', msq);
the tablename you can find in the table viewer (ctrl + t) after reload the script
from files it is the filename, from excel-sheets the sheetname with prefix $, from data bases the table name maybe with prefix of database content (msd.country)
you can also give your own table name in the script with the table label and a ":" before your load or select statement
sql select * from.....