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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] row in the CSV file

Hi,
I would like to add to my csv file on the top some extra row to look like below, I am not sure how to do it using talend.
I have use a three different files from where I am doing mapping and look up but on the end when I insert to my csv file and just getting normal column population not sure how to make these empty rows before I get title for my second part.
Any help is welcome.
Thanks
Zeljka
colum1 colum2 column3
text,
text ,
text ,
title1 title2, title3
tesxt text, text,
text, text text
text text text
Labels (2)
28 Replies
Anonymous
Not applicable
Author

Thank you very much for these ...
do you have any idea why header of my second file is not displaying.
Z
Anonymous
Not applicable
Author

Thanks Walkerca
The code with add Variable working very good the only outstanding issue is that I still can't desplay title of my main file.
If I run main file with out tForeach part my Title is there but when I make link between these two
Please see these two images one is with title and one is with out when I link it with tForeach
Anonymous
Not applicable
Author

images
Anonymous
Not applicable
Author

From a couple posts back..."My Trade file header is = 1 and footer = 0"
Have you tried header=0?
Anonymous
Not applicable
Author

Hi,
I am able to sort date in my Rows where I am having DATE but I as I new in Talend not sure how I can create this line
"#HEADER: " + context.DATA_DIR , I am not sure how to create context for exisitng tForeach job
Thanks
Zeljka
Anonymous
Not applicable
Author

Sorry I just saw your post about my Header = 1 ..
yes I have even tried to change to be Header = 0 and still not showing ...
Z
Anonymous
Not applicable
Author

hi,
I have try any solution to bring my title of my main file.
I do not have problem to do my data as look like below
text
text
text
however when I become to bring titile of my part look like below I am just losing my title even if I tick Include header and append. this is quite important for me and so far I couldn't find any solution.
Is anyone who can help.
Thanks
Z
title title title title
text text text text
text text text text
Anonymous
Not applicable
Author

Hi Zeljka
I am back to you, I understand your request now, you need redesign the job like this:
the first part(output the result to a file as you done, let's say it is test.csv)
|
the second part---tFileOutputDelimited(output the result to a temporary file, eg: temp.txt, note that check the box 'include header')
|
tFileInputFullRow(Read the temporary file temp.txt line by line)--main->tFileOutputDelimited(output the result to test.csv, note that check the box 'append')
Best regards
Shong
Anonymous
Not applicable
Author

Hi Shong,
Thank you , this way is working finally... ; )

Thanks
Zeljka