rohan_rege
23rd October 2002, 18:34
hi ,

in a exchange scheme that i have created........i need to append a date stamp to the name of the ascii file that gets created .

currently as always , i have specified a ascii file name in the
tuxch0131s000 session i.e Maintain Table relations Export.


is there a way that i can append a date function to the ascii file name i specify in the tuxch0131s000 session i.e Maintain Table relations Export.

i know that another option is to write a shell script which will append a date stamp to the ascii file name by renaming it after the export is done......

but i am just trying to do it in the exchange scheme itself

rgds
Rohan

ssbaan
24th October 2002, 17:49
I have not seen anywhere in the BaaN help or documentation where you can use a variable in the ASCII file name. Possible,
you could set up different batch numbers with different ASCII file names and execute a different batch number each day. Maybe even set a condition on each batch to run only for a certain day
so when executing the exchange scheme it will wirite the ASCII
file name only for the current day

Just some thoughts!

Darren Phillips
24th October 2002, 20:23
looking at the help on this field tuxch031.nasf I see that changes on this field do not need the exchange scheme to be regenerated so you could have a condition in your scheme that updated this field in table tuxch031 with the current date. Assuming the export session doesn't do the read on this table at the start of the session this should work.