Using Published Parameters in Startup/Shutdown TCL
Article Number: 000001192 - Last Modified: Sep 20, 2011
Accessing a published parameter in Startup/Shutdown TCL?
Use the TCL Global variable $FME_MacroValues(). Many Global variable are available in the Startup/Shutdown TCL see the FME user documentation: FME Fundementals: FME Configuration > FME_BEGIN_TCL and FME_END_TCL > FME_BEGIN_ TCL
For example to delete an Excel file before writing the script would look something like:
puts "***Startup TCL: Deleting file: $FME_MacroValues(DestDataset_XLS_ADO)"
file delete $FME_MacroValues(DestDataset_XLS_ADO)
The 'puts' will log a message in the FME log file.
|
Suggested Similar Articles