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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Rename Field<br />

Renames one or more existing <strong>QlikView</strong> field(s).<br />

The syntax is:<br />

rename field [s] (using mapname | oldname to newname{ , oldname to<br />

newname })<br />

where:<br />

mapname is the name of a previously loaded mapping table containing one or more pairs of old and new<br />

field names.<br />

oldname is the old field name and<br />

newname is the new field name.<br />

Either syntax: rename field or rename fields can be used.<br />

Examples:<br />

Rename field XAZ0007 to Sales;<br />

FieldMap:<br />

Mapping select oldnames, newnames from datadictionary;<br />

Rename fields using FieldMap;<br />

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

Rename Table<br />

Renames one or more existing <strong>QlikView</strong> internal table(s).<br />

The syntax is:<br />

rename table[s] (using mapname | oldname to newname{ , oldname to<br />

newname })<br />

where:<br />

mapname is the name of a previously loaded mapping table containing one or more pairs of old and new<br />

table names.<br />

oldname is the old table name and<br />

newname is the new table name.<br />

Either syntax: rename table or rename tables can be used.<br />

Examples:<br />

Tab1:<br />

Select * from Trans;<br />

Rename table Tab1 to Xyz;<br />

TabMap:<br />

Mapping load oldnames, newnames from tabnames.csv;<br />

Rename tables using TabMap;<br />

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

258

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

Saved successfully!

Ooh no, something went wrong!