Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Prasanna3
Contributor
Contributor

Scenario based Question in Talend???

I have CSV file like below

123 145 167
345 567 789


empno ename sal
111 Kiran 200
112. King 300

how to read CSV file from starting header.
Labels (3)
35 Replies
Prasanna3
Contributor
Contributor
Author

Can you please tell me what the number you given in Header filed in tfileinpitdelimited
Ganshyam
Creator II
Creator II

Hello,

 

I did not specify any number for header,

1) Took one context variable with default values as false.

2) In tjavarow 

   if (input_row.empno.equalsIgnoreCase("empno"))  context.header = true;

3) In tmap : -  !row2.empno.equalsIgnoreCase("empno") && (boolean) context.header

 

Regards

Ganshyam

Anonymous
Not applicable

Can you please elaborate the scenario
Anonymous
Not applicable

Can you please elaborate the code that you wrote in tjavarow component
Ganshyam
Creator II
Creator II

Hello,

 

0683p000009Lzwe.png

 

Hope this helps..!!!

Regards

Ganshyam

Anonymous
Not applicable

Thank you for the response it's worked for me,But im not understanding the code that you wrote can you please explain.
Prasanna3
Contributor
Contributor
Author

I have one more doubt.
How can I write below command in tsystem
For /f "delims=:" %%a in ('findstr /n "cid" "filepath"')
Prasanna3
Contributor
Contributor
Author

As you mentioned on which component we should take context variable default as false .
Where we use this context variable.can you please elaborate explanation
Prasanna3
Contributor
Contributor
Author

And also I want to read header also but in your output there is no header
Ganshyam
Creator II
Creator II

Hello,

 

Define the context variable header under context tab in job design.

 

0683p000009M062.png

 

Regards

Ganshyam