Pentaho Spoon Text File Output Additional Information Header

旧城冷巷雨未停 提交于 2019-12-24 15:31:05

问题


I am using the Text File Output step to create a CSV file, however i need to insert some additional rows of information at the top of the file. I have been able to have another transform output this data in a previous job step, however when doing so prevents me from outputting column headers in the appended csv output.

The end result I am looking for would look something like this:

EXTRACT TYPE: XYZ

DATE: 20110520

FIRST NAME,LAST NAME,AMOUNT

charlie, chaplain, 2345

someone, else, 1234

Any help would be greatly appreciated. Thanks.


回答1:


You can output the text file without header option. Check the KTR file - I attach the links below.

Here's the : http://pentaho.phi-integration.com/kettle/kettle-files/csv_header_solution.ktr and the sample source CSV file : http://pentaho.phi-integration.com/kettle/kettle-files/source.csv.

Hope this help.



来源:https://stackoverflow.com/questions/6072223/pentaho-spoon-text-file-output-additional-information-header

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!