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

I posted a video tutorial on this. See if it helps http://youtu.be/DdTBSguTjzc?a .
Anonymous
Not applicable
Author

hi,
Thanks for your advice ..
I have done exactly how you did post on youtube but my second title not showing up.. can't figure out why as I am not doing anything different.
Z
Anonymous
Not applicable
Author

Is it outputting "#BEGIN HEADER", "#SENDER ID", and the remaining fields but not "#CLIENT ID"?
Anonymous
Not applicable
Author

hi,
I have done everything as you suggested on your video but from my images you can see that I have still not having title in second part of the text even if I folow your instruction.
any an indea what can cause that..

Thanks
Zeljka
Anonymous
Not applicable
Author

Yes I can see my
#Header,
#SenderID etc
but can't see the title of the second set data
Anonymous
Not applicable
Author

I am not sure if I am clear,
the first part is coming very good, I am having all my data from the tForeach part,
however my second file having title before every single column
test,
test,
test,
test
.
.
.
Title title title title
text text text text
should loook like this but I am having as I sowed on my image,
the second part is only text but not title at all
Thanks
Zeljka
Anonymous
Not applicable
Author

Is Trade set to Header=0, Footer=0?
Anonymous
Not applicable
Author

No ,
My Trade file header is = 1 and footer = 0
but in other file it is set it both to be = 0
Anonymous
Not applicable
Author

Also is any chance that I can pass any variable ,
I wanted in the first set of the data to put some date to be change in loop like current date where is Date stated, or no of Version or no of the Row.
is this posible as all these row is under one column.
Zeljka
# BEGIN HEADER VERSION 1.1
# SENDERID:
# CLIENTID:
# DATE:
# FILETYPE:
# VERSION:
# ROWS:
# SEPARATOR:
# END HEADER
Anonymous
Not applicable
Author

Use the Java concatenation operator to join a variable to the header in the tForeach values.
Some examples
"#HEADER: " + context.DATA_DIR
"#DATE: " + TalendDate.getCurrentDate()