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
  • 78 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
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

1 reply

takashi
Celebrity
  • 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