Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
madhubabu
Contributor III
Contributor III

QVD Creating concepts

Hi All,

I have 20 tables. I Have to create them into QVD'S. I don't want to write store command for each & every table. Is there any way to create qvd's for all the 20 tables at a time.

Thanks in advance

Madhu

3 Replies
qlikviewwizard
Master II
Master II

Hi Madhu,

Yes, It is possible.

Please check this document.

Automatic Loading Tables and QVDs

qlikviewwizard
Master II
Master II

Hi Madhu,

Did you get the useful info?

marcus_sommer

You could use a loop like this:

for i = 1 to NoOfTables() - 1

    let t = TableName($(i));

    store [$(t)] into [$(t).qvd] (qvd);

next

But often it's better to store (and drop) a table at that moment that they is created and not to store all tables before finishing the reload-script then in this case all tables remain into the RAM until the end. For this you could use a sub-statement like this:

sub StoreAndDrop(vTableName, vSuffix, vQVDFolder, vDrop)

    store [$(vTableName)] into [$(vQVDFolder)\$(vTableName)$(vSuffix).qvd] (qvd);

    if '$(vDrop)' = 'drop' then

        drop table [$(vTableName)];

    end if

end sub

call StoreAndDrop('YourTable', '', '.\', 'drop')

- Marcus