To use the value from a value as part of the name of the Del

How to use the data from a component to name the outputfile. I have requirement where i need to create the output file from a DelimitedDataWriter with the name that is part of the metadata.

For instance

I have the following data which flows through the graph

RACF,NW01,NW01_group

I have to create a output file with name “RACF_01_glossary.txt” - here the prefix “RACF” should be from the data.

Appreciate any inputs to help me in this regard.

Thanks,

Jayakumar

Hello Jayakumar,
I’m not sure if I properly understand your problem but you are probably looking for Partitioning Output into Different Output Files feature.
To make a Writer write data to the file named RACF_01_glossary.txt, you should set following attributes on it:

  • fileURL="${DATAOUT_DIR}/#_01_glossary.txt’

  • partitionKey=“fieldName” - where fieldName is the name of the input field containing RACF

  • partitionFileTag=“keyNameFileTag”