<?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: Command Line - Reload only 1st 1000 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Command-Line-Reload-only-1st-1000/m-p/429844#M160228</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;In reference manual there are some commands given.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6.1 Command Line Syntax&lt;/P&gt;&lt;P&gt;The QlikView command line invocation can be described by the following syntax&lt;/P&gt;&lt;P&gt;(for a description of the syntax notation used, see page 535 in Book III):&lt;/P&gt;&lt;P&gt;[ path ] Qv.exe [ { switch } documentfile ]&lt;/P&gt;&lt;P&gt;The path is the path to the file, either absolute, or relative to the current directory.&lt;/P&gt;&lt;P&gt;documentfile::= [ path ] documentfilename&lt;/P&gt;&lt;P&gt;documentfilename is the name of your document file.&lt;/P&gt;&lt;P&gt;switch is used to mark different options:&lt;/P&gt;&lt;P&gt;/r&lt;/P&gt;&lt;P&gt;Reload switch. The document will be opened and the script&lt;/P&gt;&lt;P&gt;reloaded. Thereafter the document will be saved, and QlikView will&lt;/P&gt;&lt;P&gt;close itself.&lt;/P&gt;&lt;P&gt;/rp&lt;/P&gt;&lt;P&gt;The same as above, but with a partial reload.&lt;/P&gt;&lt;P&gt;/l&lt;/P&gt;&lt;P&gt;Load new data. The document will be opened and the script&lt;/P&gt;&lt;P&gt;reloaded. The document will not be saved and QlikView will remain&lt;/P&gt;&lt;P&gt;open.&lt;/P&gt;&lt;P&gt;/lp&lt;/P&gt;&lt;P&gt;The same as above, but with a partial reload.&lt;/P&gt;&lt;P&gt;/v&lt;/P&gt;&lt;P&gt;If this switch is immediately followed by a variable name and an&lt;/P&gt;&lt;P&gt;assignment, the variable will obtain the assigned value before the&lt;/P&gt;&lt;P&gt;script execution starts.&lt;/P&gt;&lt;P&gt;/nodata&lt;/P&gt;&lt;P&gt;Opens the document without variables, table and field data. This&lt;/P&gt;&lt;P&gt;feature is also available for previously opened documents on the&lt;/P&gt;&lt;P&gt;Start Page, see page 43.&lt;/P&gt;&lt;P&gt;42&lt;/P&gt;&lt;P&gt;/NoSecurity&lt;/P&gt;&lt;P&gt;Overrides QlikView security measures against hostile macros and&lt;/P&gt;&lt;P&gt;scripts embedded in QlikView documents. No warning dialogs&lt;/P&gt;&lt;P&gt;prompting the user to accept potentially harmful code will be&lt;/P&gt;&lt;P&gt;shown. Use this switch with caution and only with well-known documents.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;qv.exe /r /vMyvar=123 abc.qvw&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Mar 2013 17:52:56 GMT</pubDate>
    <dc:creator>sushil353</dc:creator>
    <dc:date>2013-03-11T17:52:56Z</dc:date>
    <item>
      <title>Command Line - Reload only 1st 1000</title>
      <link>https://community.qlik.com/t5/QlikView/Command-Line-Reload-only-1st-1000/m-p/429843#M160227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Folks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have an option when using the script debugger to reload the data but only with 1st 1000 rows of each table, this is not only useful but mandatory for us to check documents into source control as the powers that be for some reason don't want multiple versions of 3GB documents being stored in our source control database. I have to say I can't blame them which is why I have always followed this, but now that I have some 40 odd documents being checked into source control every two weeks it's a real pain in the backside running through this in the QV environment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want to do is create a batch file that will do this for me, a simple series of command line actions that reloads every document with small amounts of data, but I can't find anywhere where this is documented.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anybody know how I would go about doing this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Nigel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Mar 2013 17:40:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Command-Line-Reload-only-1st-1000/m-p/429843#M160227</guid>
      <dc:creator />
      <dc:date>2013-03-11T17:40:45Z</dc:date>
    </item>
    <item>
      <title>Re: Command Line - Reload only 1st 1000</title>
      <link>https://community.qlik.com/t5/QlikView/Command-Line-Reload-only-1st-1000/m-p/429844#M160228</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;In reference manual there are some commands given.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6.1 Command Line Syntax&lt;/P&gt;&lt;P&gt;The QlikView command line invocation can be described by the following syntax&lt;/P&gt;&lt;P&gt;(for a description of the syntax notation used, see page 535 in Book III):&lt;/P&gt;&lt;P&gt;[ path ] Qv.exe [ { switch } documentfile ]&lt;/P&gt;&lt;P&gt;The path is the path to the file, either absolute, or relative to the current directory.&lt;/P&gt;&lt;P&gt;documentfile::= [ path ] documentfilename&lt;/P&gt;&lt;P&gt;documentfilename is the name of your document file.&lt;/P&gt;&lt;P&gt;switch is used to mark different options:&lt;/P&gt;&lt;P&gt;/r&lt;/P&gt;&lt;P&gt;Reload switch. The document will be opened and the script&lt;/P&gt;&lt;P&gt;reloaded. Thereafter the document will be saved, and QlikView will&lt;/P&gt;&lt;P&gt;close itself.&lt;/P&gt;&lt;P&gt;/rp&lt;/P&gt;&lt;P&gt;The same as above, but with a partial reload.&lt;/P&gt;&lt;P&gt;/l&lt;/P&gt;&lt;P&gt;Load new data. The document will be opened and the script&lt;/P&gt;&lt;P&gt;reloaded. The document will not be saved and QlikView will remain&lt;/P&gt;&lt;P&gt;open.&lt;/P&gt;&lt;P&gt;/lp&lt;/P&gt;&lt;P&gt;The same as above, but with a partial reload.&lt;/P&gt;&lt;P&gt;/v&lt;/P&gt;&lt;P&gt;If this switch is immediately followed by a variable name and an&lt;/P&gt;&lt;P&gt;assignment, the variable will obtain the assigned value before the&lt;/P&gt;&lt;P&gt;script execution starts.&lt;/P&gt;&lt;P&gt;/nodata&lt;/P&gt;&lt;P&gt;Opens the document without variables, table and field data. This&lt;/P&gt;&lt;P&gt;feature is also available for previously opened documents on the&lt;/P&gt;&lt;P&gt;Start Page, see page 43.&lt;/P&gt;&lt;P&gt;42&lt;/P&gt;&lt;P&gt;/NoSecurity&lt;/P&gt;&lt;P&gt;Overrides QlikView security measures against hostile macros and&lt;/P&gt;&lt;P&gt;scripts embedded in QlikView documents. No warning dialogs&lt;/P&gt;&lt;P&gt;prompting the user to accept potentially harmful code will be&lt;/P&gt;&lt;P&gt;shown. Use this switch with caution and only with well-known documents.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;qv.exe /r /vMyvar=123 abc.qvw&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Mar 2013 17:52:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Command-Line-Reload-only-1st-1000/m-p/429844#M160228</guid>
      <dc:creator>sushil353</dc:creator>
      <dc:date>2013-03-11T17:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: Command Line - Reload only 1st 1000</title>
      <link>https://community.qlik.com/t5/QlikView/Command-Line-Reload-only-1st-1000/m-p/429845#M160229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's what I found in the manuals too...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And it doesn't mention any option to reload the data but only load the first 1000 (or N) rows of any table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Mar 2013 17:54:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Command-Line-Reload-only-1st-1000/m-p/429845#M160229</guid>
      <dc:creator />
      <dc:date>2013-03-11T17:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: Command Line - Reload only 1st 1000</title>
      <link>https://community.qlik.com/t5/QlikView/Command-Line-Reload-only-1st-1000/m-p/429846#M160230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a variable in the script, e.g. vRecs. You can use that variable in the script to check it's value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if $(vRecs) &amp;gt;0 then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SET vFirstX = 'first $(vRecs)';&lt;/P&gt;&lt;P&gt;else &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set vFirstX =;&lt;/P&gt;&lt;P&gt;endif&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$(vFirstX)&lt;/P&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;LOAD * FROM ...&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;SET vRecs = 0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can pass the variable as parameter with the /v flag:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;qv.exe /r /vvRecs=1000 "C:\MyDoc\MyQvDoc.qvw"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;You'll need to put $(vFirstX) above every load statement that loads data from external sources.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Mar 2013 18:04:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Command-Line-Reload-only-1st-1000/m-p/429846#M160230</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-03-11T18:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: Command Line - Reload only 1st 1000</title>
      <link>https://community.qlik.com/t5/QlikView/Command-Line-Reload-only-1st-1000/m-p/429847#M160231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;While not addressing your specific question, have you considered using the source control integration in qv?&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-wiki-small" href="http://community.qlik.com/docs/DOC-3424"&gt;http://community.qlik.com/docs/DOC-3424&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Mar 2013 03:29:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Command-Line-Reload-only-1st-1000/m-p/429847#M160231</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2013-03-12T03:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: Command Line - Reload only 1st 1000</title>
      <link>https://community.qlik.com/t5/QlikView/Command-Line-Reload-only-1st-1000/m-p/429848#M160232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks both&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the answer from Gysbert can be a quick fix for me, but I'll certainly look into the source code integration and see what that can do to help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Much appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Mar 2013 07:53:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Command-Line-Reload-only-1st-1000/m-p/429848#M160232</guid>
      <dc:creator />
      <dc:date>2013-03-12T07:53:23Z</dc:date>
    </item>
  </channel>
</rss>

