Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Adding Data to an existing txt-file with store

Hi, is there a way adding data to an existing txt or qvd file with store or something else? I'm doing an partial Reload and I wanted to save all new data in the txt-file. The Table in the file and in QlikView is the same.

Best Regards

Ingo Placzek

4 Replies
Not applicable
Author

Hi,

You can store the data to an existing QVD or text file.

First load the data from the QVD/text file and store it in a table. Then concat the new data to the QVD table and then finally store the entire contents of the table into a QVD/text file.

the script will look as shown below:


[QVD Data]:
Load *
from a.qvd; //This loads the data from existing QVD into the table 'QVD Data'
concat [QVD Data]
load * from Source.txt; //this concats the new data from text file into table [QVD Data]
store [QVD Data] into Data.qvd; //this stores the final data (QVD data + new data) into the QVD
store [QVD Data] into Data.txt; //this stores the final data (QVD data + new data) into a text file


Not applicable
Author

Hi, my Script looks like this, but it doesent work, he don't know the concat:


qualify *;

ProAgent:
replace Load * From ProAgent.txt (txt);

concat ProAgent;
add Load *
Resident Status
where ALERTGROUP = 'ProAgent';

Store * from ProAgent into ProAgent.txt (txt);
DROP TABLE ProAgent;

gandalfgray
Specialist II
Specialist II

Good Morning!

You have mixed up "concat" with "concatenate"

A small tip: F1 Smile

Also you should omit the ";" in the first line of the concatenate statement and have parenthesis:

concatenate (ProAgent)

add Load *

Resident Status

where ALERTGROUP = 'ProAgent';

Try something like that.

Not applicable
Author

This one should work


qualify *;

ProAgent:
replace Load * From ProAgent.txt (txt);

concatenate (ProAgent)
add Load *
Resident Status
where ALERTGROUP = 'ProAgent';

Store * from ProAgent into ProAgent.txt (txt);
DROP TABLE ProAgent;