<?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 Execute Statement for Qlikview Scripts in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Execute-Statement-for-Qlikview-Scripts/m-p/563450#M210260</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;I'm trying to figure out if there is a way to execute Qlikview scripts from ANOTHER Qlikview script. I have a large number of scripts that need to run either daily/weekly/monthly, and it's quite tedious to have to open each module and reload the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a simple command that executes a given script so that I can house a large number of execute statements in one file? Any help would be much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Jul 2013 22:40:19 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-07-11T22:40:19Z</dc:date>
    <item>
      <title>Execute Statement for Qlikview Scripts</title>
      <link>https://community.qlik.com/t5/QlikView/Execute-Statement-for-Qlikview-Scripts/m-p/563450#M210260</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;I'm trying to figure out if there is a way to execute Qlikview scripts from ANOTHER Qlikview script. I have a large number of scripts that need to run either daily/weekly/monthly, and it's quite tedious to have to open each module and reload the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a simple command that executes a given script so that I can house a large number of execute statements in one file? Any help would be much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jul 2013 22:40:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Execute-Statement-for-Qlikview-Scripts/m-p/563450#M210260</guid>
      <dc:creator />
      <dc:date>2013-07-11T22:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Statement for Qlikview Scripts</title>
      <link>https://community.qlik.com/t5/QlikView/Execute-Statement-for-Qlikview-Scripts/m-p/563451#M210261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can start QV from the command line and use the reload switch to reload your document, save and close the document. Please check the chapter in your reference manual (AFAIR 7.1 and 7.4).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would recommend creating some windows batch files to execute these reload tasks and maybe create a windows schedule to run them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[I assume you don't have a QV server available for scheduled reloads]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also execute a windows command from within the script (check also the HELP or fe manual), like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="Code"&gt;Execute cmd.exe /C C:\BatFiles\Script.bat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jul 2013 23:30:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Execute-Statement-for-Qlikview-Scripts/m-p/563451#M210261</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-07-11T23:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Statement for Qlikview Scripts</title>
      <link>https://community.qlik.com/t5/QlikView/Execute-Statement-for-Qlikview-Scripts/m-p/563452#M210262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have a link to that reference manual? 7.1 and 7.3 in the reference manual I found don't appear to deal with any sort of script execution.&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="active_link" href="https://community.qlik.com/servlet/JiveServlet/previewBody/1794-102-1-1791/QlikView Reference Manual.pdf"&gt;http://community.qlik.com/servlet/JiveServlet/previewBody/1794-102-1-1791/QlikView%20Reference%20Manual.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll do some research on creating batch files to execute each of my scripts - thanks for the idea!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jul 2013 13:54:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Execute-Statement-for-Qlikview-Scripts/m-p/563452#M210262</guid>
      <dc:creator />
      <dc:date>2013-07-12T13:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Statement for Qlikview Scripts</title>
      <link>https://community.qlik.com/t5/QlikView/Execute-Statement-for-Qlikview-Scripts/m-p/563453#M210263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, that's the reference manual for version 10. Current version is 11.2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the content is not much different, just look into chapter 6.1 and 6.3 of the linked manual.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jul 2013 14:04:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Execute-Statement-for-Qlikview-Scripts/m-p/563453#M210263</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-07-12T14:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Statement for Qlikview Scripts</title>
      <link>https://community.qlik.com/t5/QlikView/Execute-Statement-for-Qlikview-Scripts/m-p/563454#M210264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome, thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jul 2013 14:05:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Execute-Statement-for-Qlikview-Scripts/m-p/563454#M210264</guid>
      <dc:creator />
      <dc:date>2013-07-12T14:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Statement for Qlikview Scripts</title>
      <link>https://community.qlik.com/t5/QlikView/Execute-Statement-for-Qlikview-Scripts/m-p/563455#M210265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm new to creating batch files; could you help me with the syntax? I have something that looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@echo off&lt;/P&gt;&lt;P&gt;REM execute script&lt;/P&gt;&lt;P&gt;C:\Users\Paul\Desktop\qv.exe /r C:\Users\Paul\Desktop\Test.qvw&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's not loading anything, and I know it's something really close to this. Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jul 2013 16:01:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Execute-Statement-for-Qlikview-Scripts/m-p/563455#M210265</guid>
      <dc:creator />
      <dc:date>2013-07-12T16:01:23Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Statement for Qlikview Scripts</title>
      <link>https://community.qlik.com/t5/QlikView/Execute-Statement-for-Qlikview-Scripts/m-p/563456#M210266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have installed QV to your desktop? Can you start the desktop client from there? Can you open your application just by using &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C:\Users\Paul\Desktop\qv.exe C:\Users\Paul\Desktop\Test.qvw&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in a shell?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If above is not the real path, usual suspects are spaces in the path, try quoting your pathes, then.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jul 2013 16:17:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Execute-Statement-for-Qlikview-Scripts/m-p/563456#M210266</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-07-12T16:17:39Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Statement for Qlikview Scripts</title>
      <link>https://community.qlik.com/t5/QlikView/Execute-Statement-for-Qlikview-Scripts/m-p/563457#M210267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Figured it out! Here it is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start "" "C:\Program Files\QlikView\Qv.exe" /r "C:\Users\psokolik\Desktop\Test.qvw"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jul 2013 16:18:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Execute-Statement-for-Qlikview-Scripts/m-p/563457#M210267</guid>
      <dc:creator />
      <dc:date>2013-07-12T16:18:09Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Statement for Qlikview Scripts</title>
      <link>https://community.qlik.com/t5/QlikView/Execute-Statement-for-Qlikview-Scripts/m-p/563458#M210268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You mention:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"&lt;SPAN style="background-color: #ffffff; color: #737373; font-family: Arial; font-size: 10pt;"&gt;You can also execute a windows command from within the script (check also the HELP or fe manual), like&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="Code" style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;Execute cmd.exe /C C:\BatFiles\Script.bat"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does the execute statement within the QV script need to refer to a batch file? If not, I assume I could have script A execute script B with a simple execute statement at the end of the file (and start a chain effect with script C, D...).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it execute statement in the QV script DOES need to refer to a windows batch file, I assume I can just have the batch file command be to execute the next script in the chain (Script A calls batch file to start script B, script B runs and calls batch file to start script C, etc.) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which is best?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jul 2013 17:56:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Execute-Statement-for-Qlikview-Scripts/m-p/563458#M210268</guid>
      <dc:creator />
      <dc:date>2013-07-12T17:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Statement for Qlikview Scripts</title>
      <link>https://community.qlik.com/t5/QlikView/Execute-Statement-for-Qlikview-Scripts/m-p/563459#M210269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, you don't need to call a batch file, so you can potentially just start the next qv.exe job (haven't tried this, would be interested in if you succeed).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see one potential issue here: &lt;/P&gt;&lt;P&gt;If you execute a second QV script from the first, the first will not finish until the second does. If you are using a chain of several large QVW, you end up with having all of them open.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While this could still work, this might cause performance issues as well as having the risk of losing all reloaded QVW when something happens at the very end.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jul 2013 18:58:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Execute-Statement-for-Qlikview-Scripts/m-p/563459#M210269</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-07-12T18:58:23Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Statement for Qlikview Scripts</title>
      <link>https://community.qlik.com/t5/QlikView/Execute-Statement-for-Qlikview-Scripts/m-p/563460#M210270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much for the help. If that's the case, it may not be my best option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've already tried putting several execute commands in a single batch file (I arranged them in the order I want them executed), but it seems to cause issues with file access and sharing. I'm not exactly sure how batch file commands execute, but it appears that they either execute all at the same time, or simply send the command to QV and don't wait for a "reload complete" indicator. When I run the batch file, I usually get an error or two saying that "File B can't execute because File A is running" or something of that sort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to think of a slick way to make sure the scripts execute in order, one after the other. I was thinking about putting a sleep function between each command so it waits to execute the next file for a specified amount of time, but I don't know what that time should be, since it will vary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you can think of anything, let me know. Again, thanks for the help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jul 2013 19:28:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Execute-Statement-for-Qlikview-Scripts/m-p/563460#M210270</guid>
      <dc:creator />
      <dc:date>2013-07-12T19:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Statement for Qlikview Scripts</title>
      <link>https://community.qlik.com/t5/QlikView/Execute-Statement-for-Qlikview-Scripts/m-p/563461#M210271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, forgot to mention that you can indeed run your programs without waiting on each other (which then may result in access violations), if you want to synchronize the executions in sequence, I think you need to use 'start /wait /b' or something like this (check the help for start), or just removing the start command should do the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just search the Web for command line program execution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Jul 2013 00:00:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Execute-Statement-for-Qlikview-Scripts/m-p/563461#M210271</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-07-13T00:00:55Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Statement for Qlikview Scripts</title>
      <link>https://community.qlik.com/t5/QlikView/Execute-Statement-for-Qlikview-Scripts/m-p/563462#M210272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana, geneva;"&gt;Dear All,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana, geneva;"&gt;i m facing this issue wherein i m unable to call the 2nd Qlikview Application&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana, geneva;"&gt;Please find the below code which i used to call the 2nd Qlikview Application&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana, geneva;"&gt;Code Script:-&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana, geneva;"&gt;Let vNextBatchFile = 'D:\Application\test_appln_2.bat';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana, geneva;"&gt;execute cmd /c $(vNextBatchFile);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana, geneva;"&gt;Above statement executes successfully but the Application doesn't reload.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana, geneva;"&gt;Script under "test_appln_2" batch file&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana, geneva;"&gt;"C:\Program Files\QlikView\Qv.exe" /r "D:\Application\test_appln_2.qvw"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana, geneva;"&gt;Could anyone please assist me.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana, geneva;"&gt;Thank you,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana, geneva;"&gt;Girish Chhatani&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Aug 2013 14:28:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Execute-Statement-for-Qlikview-Scripts/m-p/563462#M210272</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-26T14:28:31Z</dc:date>
    </item>
  </channel>
</rss>

