Search Options
Skip to main content (Press Enter).
Sign In
Skip auxiliary navigation (Press Enter).
Skip main navigation (Press Enter).
Toggle navigation
Search Options
Communities
General Discussion
My Communities
Explore All Communities
Products
Solutions
Services
Developers
Champions Corner
Customer Stories
Insights
Customer Advocacy Program
Badge Challenges
Resources
Resource Library
Hitachi University
Product Documentation
Product Downloads
Partners Portal
How To
Get Started
Earn Points and Badges
FAQs
Start a Discussion
Communities
Community Home
Discussion
View Question
Pentaho
View Only
Community Home
Threads
5.8K
Library
457
Blogs
16
Members
650
Back to {0}
I wanted to load only header to the output file. Is there any option without java code
Jump to
Best Answer
Thread closed by the administrator, not accepting new replies.
Add a tag
x
User Tags may not contain the following characters: @ # $ & :
EN Ratnam
posted 03-22-2022 06:43
i have requirement like I wanted to load only header to the output file. Is there any option without java code.
suppose the input file as mentioned below
id,name,loc
12.0,na,bang
13.0,amu,bang
14.0,taj,bang
15.0,kal,bang
Output file should be:
id,name,loc
Ana Gonzalez
posted 03-22-2022 09:00
Best Answer
If you use the
Text file input
step to read the file, you can uncheck the option to indicate there is no header row, and check the option to add a rownum field to add a column with the number of line of your file. You'll have to give column names manually to the file, and after the
Text file input
step you add a
Filter rows
step where you filter the column with the number of line with value 1.
EN Ratnam
posted 03-24-2022 02:26
I got the solution and find the below ktr for that.
Related Content
Porque é criado novos arquivos na pasta Kettle após alterações no PDI
Washington Roberto de Lima Silva
Added 01-05-2023
Discussion Thread
1
How to produce the PDF output for the HTML code in Pentaho Report Designer
Kiruthika M
Added 03-26-2019
Library Entry
RE: How to produce the PDF output for the HTML code in Pentaho Report Designer
Data Conversion
Added 08-14-2019
Library Entry
Problem with Administration options menu
Dagoberto Gomez Jimenez
Added 06-01-2018
Library Entry
Simplify Data Pipelines across On-Premise and Cloud Hadoop Data Lakes
Anand Sagar Rao Vala
Added 02-13-2020
Blog Entry
© Hitachi Vantara LLC 2023. All Rights Reserved.
Powered by Higher Logic