Quantcast
Channel: Pentaho Community Forums
Viewing all articles
Browse latest Browse all 16689

Add a line at the top of the validated output CSV File

$
0
0
Hi,

I have a requirement where in I have to add a line at the top of the validated output csv file. Is there any way I can do so. I tried using UDJC but could not get that working. I have attached my transformation here.

Capture.jpg

Basically, I have added an UDJC and connected it to an "Write empty output file" step with the "Header" option checked. This empty output file has all the fields that the actual validated output file(Write Validated CatalogEntry Output) has. The actual output file has the "append" option checked. So basically I require two headers, one of which is produced by "Write empty output file" step but not able to generate the first header through the UDJC.

I require the output to be something like this:

Capture1.PNG

Please let me know, how can I achieve this functionality through UDJC or by any other way. Any help is really appreciated!!
Attached Images

Viewing all articles
Browse latest Browse all 16689

Trending Articles