21.01.2013 Views

QlikView Reference Manual.pdf - QlikCommunity - QlikView

QlikView Reference Manual.pdf - QlikCommunity - QlikView

QlikView Reference Manual.pdf - QlikCommunity - QlikView

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

drop fields A,B;<br />

drop field A from X;<br />

drop fields A,B from X,Y;<br />

Back to Script Statements and Keywords (page 219).<br />

Drop Table<br />

One or several <strong>QlikView</strong> internal tables can be dropped from memory at any time during script execution,<br />

by means of a drop table statement. The following items will be lost as a result of this:<br />

l The actual table(s).<br />

l All fields which are not part of remaining tables.<br />

l Field values in remaining fields, which came exclusively from the dropped table(s).<br />

The syntax is:<br />

drop table[ s ]tablename [, tablename2 ...]<br />

The forms drop table and drop tables are both accepted.<br />

Examples:<br />

drop table Orders, Salesmen, T456a;<br />

This line results in three tables being dropped from memory.<br />

Tab1:<br />

select * from Trans;<br />

load Customer, Sum( sales ) resident Tab1 group by Month;<br />

drop table Tab1;<br />

As a result only the aggregates remain in the memory. Trans data is discarded.<br />

Back to Script Statements and Keywords (page 219).<br />

Execute<br />

With the execute statement it is possible to run other programs during the re-execution of the <strong>QlikView</strong><br />

script, e.g. conversions that are necessary.<br />

The syntax is:<br />

execute commandline<br />

where:<br />

commandline is a text that can be interpreted by the operating system as a command line.<br />

Examples:<br />

Execute C:\Program Files\Office12\Excel.exe;<br />

Execute winword macro.doc;<br />

Execute cmd.exe /C C:\BatFiles\Log.bat<br />

Note!<br />

The /C needs to be included as it is a parameter to cmd.exe.<br />

Back to Script Statements and Keywords (page 219).<br />

232

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!