Not sure if I understand you completely but if you are asking how to export into the original data file that was imported into the sheet, then you can use the following code, assuming that there was only one import in that book
%A=page.info.system.import.filepath$;
expASC type:=csv path:="%A" overwrite:=replace longname:=0;
CP