Skip to main content
Question

Naming an output file based on parts of the Readers/Tabs folder name and file name

  • December 31, 2013
  • 1 reply
  • 43 views

Is it possible to automatically name the output writer based on parts of the folder name the reader/TAB came from AND the name of the reader itself?

 

 

For example, This is the folder where the reader/TAB came from:

 

"KNKA208 CMA 028A Indianapolis"

 

 

And the readers/TAB name is "Authorized CGSA"

 

 

and I want the output to be named:

 

"A-KNKA208-028-Indianapolis-Authorized CGSA"

 

 

 

Thanks!

 

Joseph

takashi
Contributor
Forum|alt.badge.img+19
  • Contributor
  • January 1, 2014
Hi Joseph,

 

 

The FilenamePartExtractor transformer can be used to get folder name and file name of the source file from "fme_dataset" (a format attribute). You can then create the destination file name using the StringConcatenator, and use "fanout" option of the writer.

 

Takashi

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings