Skip to main content
Announcements
Global Transformation Awards! Applications are now open. Submit Entry
cancel
Showing results for 
Search instead for 
Did you mean: 
prees959
Creator II
Creator II

Simple way to loop through qvd's and remove two fields

Hi,

I need to loop through a folder with about 20 QVDs and remove two fields from each one : 'key_prefix' and 'key_binder'.

Is there any easy way to do this and Store the resulting QVDs in a new folder?  

Many thanks,

Phil

1 Solution

Accepted Solutions
tresesco
MVP
MVP

Try like:

for each File in filelist (Root&'\*.' &qvd)


tab:

     Load

               *

     From  path\$(File);

     Drop fields 'key_prefix' , 'key_binder';

     Store tab into <new path>;


next File

View solution in original post

4 Replies
stabben23
Partner - Master
Partner - Master

Hi,

You can use

"Drop Fields 'key_prefix' , 'key_binder';

at the end of the script, before you store.

tresesco
MVP
MVP

Try like:

for each File in filelist (Root&'\*.' &qvd)


tab:

     Load

               *

     From  path\$(File);

     Drop fields 'key_prefix' , 'key_binder';

     Store tab into <new path>;


next File

micheledenardi
Specialist II
Specialist II

NewTable:

Load *

From C:\YourPath\QvdCommonName*.qvd (qvd);

Drop Fields 'key_prefix' , 'key_binder' from NewTable;


Using * (in the FROM statement) after the common part of the name (of your 20 QVDs) Qlik load all QVDs which name match with the part after the *.

Michele De Nardi
If a post helps to resolve your issue, please accept it as a Solution.
prees959
Creator II
Creator II
Author

thanks everyone!