<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Remove data from qvw with command line in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Remove-data-from-qvw-with-command-line/m-p/470474#M175744</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Watch out for these solutions having different effects on your QlikView document internals. Two trains of thought in this discussion:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;DELETE DATA MODEL = this is what you get if you skip the Load script altogether. It also deletes all your fields and related properties (triggers? Always one selected!!!) which is exactly what the OP had a problem with: "&lt;EM&gt;...&lt;/EM&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt; then loses all field formats set in the document properties&lt;/EM&gt;". Depending on the inside of your document, you may want to avoid this technique.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;REDUCE DATA (like in the File Menu in QV Desktop) = a fully loaded document will have all rows and values dropped, but the tables and their structures will remain intact. Fields will still exist, although they won't carry any values anymore. Most if not all properties will be maintained. IMHO this is what flipside's code is doing (and possibly Lucian Cotea's VBS code as well).&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a difference.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 May 2017 16:14:40 GMT</pubDate>
    <dc:creator>Peter_Cammaert</dc:creator>
    <dc:date>2017-05-30T16:14:40Z</dc:date>
    <item>
      <title>Remove data from qvw with command line</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-data-from-qvw-with-command-line/m-p/470451#M175721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know if there is a way to remove data from a qvw with a command line but by keeping the field names.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried the following...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: #737373;"&gt;C:\Program Files\QlikView\qv.exe /nodata C:\Folder\File.qvw&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but this removes ALL data including field names which then loses all field formats set in the document properties. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I basically want a way of doing the same thing as FILE&amp;gt;REDUCE DATA&amp;gt;REMOVE ALL VALUES but with a command line instead. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know a way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14.5pt; font-family: 'Courier New'; color: #737373;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jun 2013 11:14:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-data-from-qvw-with-command-line/m-p/470451#M175721</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2013-06-13T11:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: Remove data from qvw with command line</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-data-from-qvw-with-command-line/m-p/470452#M175722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps with a vbscript script file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set MyApp = CreateObject("QlikTech.QlikView")&lt;/P&gt;&lt;P&gt;Set MyDoc = MyApp.OpenDocEx("D:\MyFile.qvw",0,False)&lt;/P&gt;&lt;P&gt;MyDoc.ReduceData&lt;/P&gt;&lt;P&gt;MyDoc.SaveAs("D:\MyFile.qvw")&lt;/P&gt;&lt;P&gt;MyDoc.CloseDoc&lt;/P&gt;&lt;P&gt;Set MyApp = Nothing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jun 2013 11:28:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-data-from-qvw-with-command-line/m-p/470452#M175722</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-06-13T11:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: Remove data from qvw with command line</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-data-from-qvw-with-command-line/m-p/470453#M175723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply. &lt;/P&gt;&lt;P&gt;I don't know what i am doing wrong (im not very good with vbscript). &lt;/P&gt;&lt;P&gt;the vbscript seems to open and save the file but it doesnt do any reduction..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any chance you could take a look to see if there is anything obvious that i am doing wrong please?&lt;/P&gt;&lt;P&gt;I have attached a sample file. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jun 2013 11:42:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-data-from-qvw-with-command-line/m-p/470453#M175723</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2013-06-13T11:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: Remove data from qvw with command line</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-data-from-qvw-with-command-line/m-p/470454#M175724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does anyone have any ideas please?:)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jun 2013 13:57:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-data-from-qvw-with-command-line/m-p/470454#M175724</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2013-06-13T13:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: Remove data from qvw with command line</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-data-from-qvw-with-command-line/m-p/470455#M175725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Add FIRST 1000 before the LOAD script and it will only load the first 1000 rows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="42621" class="jive-image" alt="FIRST.png" src="https://community.qlik.com/legacyfs/online/42621_FIRST.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jun 2013 14:07:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-data-from-qvw-with-command-line/m-p/470455#M175725</guid>
      <dc:creator>rustyfishbones</dc:creator>
      <dc:date>2013-06-13T14:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: Remove data from qvw with command line</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-data-from-qvw-with-command-line/m-p/470456#M175726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alan,&lt;/P&gt;&lt;P&gt;Thanks for your reply. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we need this to run&amp;nbsp; automatically in our backup routine. so limiting the load to 1000 rows is not possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the vbs option that Gysbert suggested is perfect but can't get it to work. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jun 2013 14:11:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-data-from-qvw-with-command-line/m-p/470456#M175726</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2013-06-13T14:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: Remove data from qvw with command line</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-data-from-qvw-with-command-line/m-p/470457#M175727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does anyone else know how i could do this please? or maybe perform a limitied load via a command line / vbs?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jun 2013 14:45:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-data-from-qvw-with-command-line/m-p/470457#M175727</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2013-06-13T14:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: Remove data from qvw with command line</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-data-from-qvw-with-command-line/m-p/470458#M175728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jun 2013 08:21:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-data-from-qvw-with-command-line/m-p/470458#M175728</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2013-06-14T08:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: Remove data from qvw with command line</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-data-from-qvw-with-command-line/m-p/470459#M175729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, it would be perfect if you could tell that function to clear all the data. What it actually seems to do is remove the data that isn't selected. I suppose you could add a bogus value to one of the tables, select that value and then reduce the data so only the bogus value remains. Not exactly perfect unfortunately.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jun 2013 11:15:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-data-from-qvw-with-command-line/m-p/470459#M175729</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-06-14T11:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: Remove data from qvw with command line</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-data-from-qvw-with-command-line/m-p/470460#M175730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help on this Gysbert. i will try that &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jun 2013 12:18:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-data-from-qvw-with-command-line/m-p/470460#M175730</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2013-06-14T12:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: Remove data from qvw with command line</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-data-from-qvw-with-command-line/m-p/470461#M175731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you want to save the layout for backup purposes.&lt;/P&gt;&lt;P&gt;Have you considered using the -prj method? This saves the layout complete with formats (but no variable values).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To create the layout backup:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Create a folder with the same name as the document and add -prj to the end. eg For Test.qvw, create folder Test-prj.&lt;/LI&gt;&lt;LI&gt;Save the document, and the -prj folder will be populated with the layout data from the model in XML format.&lt;/LI&gt;&lt;LI&gt;Point your backup to all files in the -prj folders.&lt;/LI&gt;&lt;LI&gt;The XML files with changes will be updated each time the model is saved (which will happen after scheduled reloads). &lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To recreate from the backup:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Close the document if it is open. If the document is lost, create a new, empty QVW file with the same name.&lt;/LI&gt;&lt;LI&gt;Copy the XML files from the backup into the -prj folder&lt;/LI&gt;&lt;LI&gt;Open the document. The layout from the XML files will be applied to the document.&lt;/LI&gt;&lt;LI&gt;Reload if necessary.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No special step to run a VBS script...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jun 2013 12:31:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-data-from-qvw-with-command-line/m-p/470461#M175731</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2013-06-14T12:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: Remove data from qvw with command line</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-data-from-qvw-with-command-line/m-p/470462#M175732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you still need the command line option, you could add this code at the end of your script which seems to do the trick - it just inner joins each table with null values. Just pass the parameter in the cmd line to trigger it ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If '$(vUnload)' = 1 then&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; For t = NoOfTables()-1 to 0 step -1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tbl = TableName(t);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fld = FieldName(1,'$(tbl)');&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; let cmd = 'Null() as $(fld)';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; inner join ($(tbl))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Load $(cmd) autogenerate 1;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; next t;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;End If;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;vUnload = 0;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: #737373;"&gt;C:\Program Files\QlikView\qv.exe&lt;/SPAN&gt; &lt;STRONG&gt;/r /vvUnload=1 &lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: #737373;"&gt;C:\Folder\File.qvw.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: #737373;"&gt;flipside&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jun 2013 13:51:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-data-from-qvw-with-command-line/m-p/470462#M175732</guid>
      <dc:creator>flipside</dc:creator>
      <dc:date>2013-06-14T13:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: Remove data from qvw with command line</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-data-from-qvw-with-command-line/m-p/470463#M175733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use this VBS:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set MyApp = CreateObject("QlikTech.QlikView")&lt;/P&gt;&lt;P&gt;Set MyDoc = MyApp.OpenDoc("Sample.qvw","","")&lt;/P&gt;&lt;P&gt;Set ActiveDocument = MyDoc&lt;/P&gt;&lt;P&gt;MyDoc.RemoveAllData&lt;/P&gt;&lt;P&gt;MyDoc.SaveAs("Sample.qvw")&lt;/P&gt;&lt;P&gt;MyDoc.GetApplication.Quit&lt;/P&gt;&lt;P&gt;Set MyDoc = Nothing&lt;/P&gt;&lt;P&gt;Set MyApp = Nothing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jun 2013 18:11:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-data-from-qvw-with-command-line/m-p/470463#M175733</guid>
      <dc:creator />
      <dc:date>2013-06-14T18:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: Remove data from qvw with command line</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-data-from-qvw-with-command-line/m-p/470464#M175734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if it is for backup purposes why dont you try the reduce option in the QMC and backup the qvw produced by the backup?&lt;/P&gt;&lt;P&gt;the only thing that you will loose is the script , but you will have the app with the data and the full GUI objects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sounds weird but i think its a creative way to do it with just using the qmc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2015 13:29:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-data-from-qvw-with-command-line/m-p/470464#M175734</guid>
      <dc:creator>hectorgarcia</dc:creator>
      <dc:date>2015-04-17T13:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: Remove data from qvw with command line</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-data-from-qvw-with-command-line/m-p/470465#M175735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Inspired by flipside's response, I try doing something like this:&lt;/P&gt;&lt;P&gt;Create a variable vExit with no value. Then put this code after initial SET definitions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;if $(vExit) = 1 then&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; trace('Stopping Data Load');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; LET vExit = 0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; EXIT Script;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;ELSE&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; trace('Running Script');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;ENDIF&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Then pass vExit=1 in command line (from qlikview folder): &lt;SPAN style="font-family: 'courier new', courier;"&gt;Qv.exe /r /vvExit=1 c:\Path\to\Sample.qvw&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;This way you should get a qvw with no data at all. I am rather new to QlikView and still checking if this method has any downsides, but I hope to use it with SVN synch (before commit).&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;@&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 15:03:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-data-from-qvw-with-command-line/m-p/470465#M175735</guid>
      <dc:creator />
      <dc:date>2016-04-14T15:03:57Z</dc:date>
    </item>
    <item>
      <title>Re: Remove data from qvw with command line</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-data-from-qvw-with-command-line/m-p/470466#M175736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That works fine. I've implemented that myself. The disadvantage is that you need to modify the script of the document first.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another solution I have used is creating an excel file with a list of file names and run a vba macro in excel to create a Qlikview instance, open each qvw file in turn, remove its data, and finally save and close the file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 17:00:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-data-from-qvw-with-command-line/m-p/470466#M175736</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-04-14T17:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: Remove data from qvw with command line</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-data-from-qvw-with-command-line/m-p/470467#M175737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, it works fine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2016 09:01:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-data-from-qvw-with-command-line/m-p/470467#M175737</guid>
      <dc:creator>adriano_fornoni</dc:creator>
      <dc:date>2016-10-27T09:01:59Z</dc:date>
    </item>
    <item>
      <title>Re: Remove data from qvw with command line</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-data-from-qvw-with-command-line/m-p/470468#M175738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Adriano&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; can you please share your sample script, even I too need this coding for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2016 11:00:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-data-from-qvw-with-command-line/m-p/470468#M175738</guid>
      <dc:creator />
      <dc:date>2016-11-07T11:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: Remove data from qvw with command line</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-data-from-qvw-with-command-line/m-p/470469#M175739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Srinivasan,&lt;/P&gt;&lt;P&gt;the code is:&lt;/P&gt;&lt;P&gt;Set MyApp = CreateObject(QlikTech.QlikView")&lt;/P&gt;&lt;P&gt;Set MyDoc = MyApp.OpenDocEx("sourcePathFile&amp;amp;docFileName", 0, False)&lt;/P&gt;&lt;P&gt;Set ActiveDocument = MyDoc&lt;/P&gt;&lt;P&gt;MyDoc.RemoveAllData()&lt;/P&gt;&lt;P&gt;MyDoc.SaveAs("destinationPathFile&amp;amp;docFileName")&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MyDoc.CloseDoc()&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MyApp.Sleep 2000&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MyApp.Quit()&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Set MyDoc = Nothing&lt;/P&gt;&lt;P&gt;Set MyApp = Nothing&lt;/P&gt;&lt;P&gt;There are some little difference due to my Windows Server (release 2012). The first is &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;MyDoc.GetApplication.Quit in &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;MyDoc.CloseDoc() and MyApp.Quit() and the secod is &lt;SPAN style="font-size: 13.3333px;"&gt;MyApp.Sleep 2000.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;It is due to the information load times at the interface opening QlikView Desktop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bye&lt;/P&gt;&lt;P&gt;Adriano&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2016 08:30:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-data-from-qvw-with-command-line/m-p/470469#M175739</guid>
      <dc:creator>adriano_fornoni</dc:creator>
      <dc:date>2016-11-08T08:30:38Z</dc:date>
    </item>
    <item>
      <title>Re: Remove data from qvw with command line</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-data-from-qvw-with-command-line/m-p/470470#M175740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But when I am using at the QV script, I am getting object can not be create by Qlikview tech..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2016 08:59:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-data-from-qvw-with-command-line/m-p/470470#M175740</guid>
      <dc:creator />
      <dc:date>2016-11-08T08:59:09Z</dc:date>
    </item>
  </channel>
</rss>

