<?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: Code to export script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Code-to-export-script/m-p/526532#M691267</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It was actually &lt;A href="https://community.qlik.com/qlik-users/2286"&gt;Rob Wunderlich&lt;/A&gt; who came up with a solution for me, with an solution based around his Document Analyzer that exported the script from all .qvw files in a folder.&amp;nbsp; I don't know if he has made the solution generally available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just a couple of thoughts on the original point - using the NO LOCK hint on the SQL query may help things, also reducing the concurrency on reloads in Publisher (or Server) may help.&amp;nbsp; Time spent optimising indexes in SQL can also pay dividends.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.quickintelligence.co.uk/"&gt;http://www.quickintelligence.co.uk/&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Sep 2013 20:08:25 GMT</pubDate>
    <dc:creator>stevedark</dc:creator>
    <dc:date>2013-09-16T20:08:25Z</dc:date>
    <item>
      <title>Code to export script</title>
      <link>https://community.qlik.com/t5/QlikView/Code-to-export-script/m-p/526529#M691264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys and Gals,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are having a problem with one of the SQL scripts written inside a QlikView application. The problem is, is that one of the scripts is locking tables within our database. We have over 200 QlikView dashboards and so going through each one is not really an option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I would like to know is if it is possible to read script tabs and copy all information from them and paste into another file like a .txt or .csv&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can create the loop that will read each QlikView application, just need to know if the above can be done and what the code for this piece would be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;Byron&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Sep 2013 12:34:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Code-to-export-script/m-p/526529#M691264</guid>
      <dc:creator />
      <dc:date>2013-09-16T12:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: Code to export script</title>
      <link>https://community.qlik.com/t5/QlikView/Code-to-export-script/m-p/526530#M691265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here a example from APIGuide.qvw:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rem ** add new line to script **&lt;/P&gt;&lt;P&gt;set docprop = ActiveDocument.GetProperties&lt;/P&gt;&lt;P&gt;docprop.Script = docprop.Script &amp;amp; "Load * from abc.csv;"&lt;/P&gt;&lt;P&gt;ActiveDocument.SetProperties docprop&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reading were so:&lt;/P&gt;&lt;P&gt;Dim oldScript&lt;/P&gt;&lt;P&gt;set docprop = ActiveDocument.GetProperties&lt;/P&gt;&lt;P&gt;oldScript = docprop.Script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suggest that you such redundant code rather handled with include-variables and you must in the future only change a single txt-file. Before search and replace any code with macros make a &lt;STRONG style="text-decoration: underline;"&gt;BACKUP&lt;/STRONG&gt;!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Sep 2013 13:49:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Code-to-export-script/m-p/526530#M691265</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2013-09-16T13:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: Code to export script</title>
      <link>https://community.qlik.com/t5/QlikView/Code-to-export-script/m-p/526531#M691266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps &lt;SPAN style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;A href="https://community.qlik.com/people/stevedark"&gt;stevedark&lt;/A&gt; &lt;/STRONG&gt;&lt;/SPAN&gt;has by now found an answer to &lt;A _jive_internal="true" href="https://community.qlik.com/thread/52894"&gt;that question&lt;/A&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Sep 2013 18:13:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Code-to-export-script/m-p/526531#M691266</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-09-16T18:13:33Z</dc:date>
    </item>
    <item>
      <title>Re: Code to export script</title>
      <link>https://community.qlik.com/t5/QlikView/Code-to-export-script/m-p/526532#M691267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It was actually &lt;A href="https://community.qlik.com/qlik-users/2286"&gt;Rob Wunderlich&lt;/A&gt; who came up with a solution for me, with an solution based around his Document Analyzer that exported the script from all .qvw files in a folder.&amp;nbsp; I don't know if he has made the solution generally available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just a couple of thoughts on the original point - using the NO LOCK hint on the SQL query may help things, also reducing the concurrency on reloads in Publisher (or Server) may help.&amp;nbsp; Time spent optimising indexes in SQL can also pay dividends.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.quickintelligence.co.uk/"&gt;http://www.quickintelligence.co.uk/&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Sep 2013 20:08:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Code-to-export-script/m-p/526532#M691267</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2013-09-16T20:08:25Z</dc:date>
    </item>
    <item>
      <title>Re: Code to export script</title>
      <link>https://community.qlik.com/t5/QlikView/Code-to-export-script/m-p/526533#M691268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your applications are set to generate a logfile (Document Properties/Generate logfile) the files you need are beeing stored besides your apps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Sep 2013 20:11:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Code-to-export-script/m-p/526533#M691268</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2013-09-16T20:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: Code to export script</title>
      <link>https://community.qlik.com/t5/QlikView/Code-to-export-script/m-p/526534#M691269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another aproach is contact your DBA, generally they have tools to locate queries that are blocking each other&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Sep 2013 20:15:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Code-to-export-script/m-p/526534#M691269</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2013-09-16T20:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: Code to export script</title>
      <link>https://community.qlik.com/t5/QlikView/Code-to-export-script/m-p/526535#M691270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The log file contains quite a lot of the script in it - but it is not the same as exporting the load script (which can be done from within the script editor).&amp;nbsp; Notably if you have a loop in your load script the code within that loop is written to the log file many times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Sep 2013 20:18:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Code-to-export-script/m-p/526535#M691270</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2013-09-16T20:18:07Z</dc:date>
    </item>
    <item>
      <title>Re: Code to export script</title>
      <link>https://community.qlik.com/t5/QlikView/Code-to-export-script/m-p/526536#M691271</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;Thanks for all your responses. I will review and reply to each one &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;We figured out a solution to do this. This was our approach. I will post the code as soon as I am back in the office&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Create a loop for each QlikView document using the filelist function.&lt;/P&gt;&lt;P&gt;2) The loop would contain an EXECUTE command that creates a prj folder for each document&amp;nbsp; using MKDIR&lt;/P&gt;&lt;P&gt;3) Each document unfortunately needs to be opened and saved for the prj folder to actually create the log files and document properties. This was also done in script, but it does take a bit of time for those slightly large qvw&lt;/P&gt;&lt;P&gt;3) In the prj folder is a .txt file with the name load script&lt;/P&gt;&lt;P&gt;4) Create another loop to retrieve each load statement script as a field with another field representing the document it came from&lt;/P&gt;&lt;P&gt;5) Once the data is loaded, create a table box object and search for the code that creates the lock&lt;/P&gt;&lt;P&gt;6) The SQL DBA already knows what code is creating the locking, so all we had to do was tell him which report contains it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just happy we got this right and learnt a lot through the process. However, the above is not a practical solution. I also want to review the QlikView governance app which from what I heard would also contain scripting information in the front end for review. Have to have a look and see &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once again, thanks for all your responses and will reply through the course of the day&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Byron&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Sep 2013 08:48:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Code-to-export-script/m-p/526536#M691271</guid>
      <dc:creator />
      <dc:date>2013-09-17T08:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: Code to export script</title>
      <link>https://community.qlik.com/t5/QlikView/Code-to-export-script/m-p/526537#M691272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are using QVD files, there´s a trick.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QlikView stores your SQL into XML header of each file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can open each one (or create a loop to process each qvd) into XML mode and import "Lineage" table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="webview.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/46620_webview.png" style="width: 620px; height: 391px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Sep 2013 12:25:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Code-to-export-script/m-p/526537#M691272</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2013-09-17T12:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: Code to export script</title>
      <link>https://community.qlik.com/t5/QlikView/Code-to-export-script/m-p/526538#M691273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Byron,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's a neat solution.&amp;nbsp; The parsing of the script files could have been done without using QlikView as there are lots of tools for searching text files (I use a lightweight one called SR32, or Notepad++ can do this).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for sharing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Sep 2013 15:22:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Code-to-export-script/m-p/526538#M691273</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2013-09-17T15:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: Code to export script</title>
      <link>https://community.qlik.com/t5/QlikView/Code-to-export-script/m-p/526539#M691274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your approval Steve &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; Means a lot coming from you! Thanks for the tip, and yes I definitely could have used Notepad++, will go check out SR32&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding the code for all to see, please bare with me! I have been a little inundated but since I love spending all my time on QlikView, will definitely upload a sample document this weekend for all to review&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Byron&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Sep 2013 09:35:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Code-to-export-script/m-p/526539#M691274</guid>
      <dc:creator />
      <dc:date>2013-09-20T09:35:47Z</dc:date>
    </item>
    <item>
      <title>Re: Code to export script</title>
      <link>https://community.qlik.com/t5/QlikView/Code-to-export-script/m-p/526540#M691275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome Clever! Thanks for the very handy tip!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Sep 2013 09:36:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Code-to-export-script/m-p/526540#M691275</guid>
      <dc:creator />
      <dc:date>2013-09-20T09:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: Code to export script</title>
      <link>https://community.qlik.com/t5/QlikView/Code-to-export-script/m-p/1973894#M1220677</link>
      <description>&lt;P&gt;Hi Author&lt;/P&gt;
&lt;P&gt;Just wondering if i could get this code ..would sought out a major problem!&lt;/P&gt;
&lt;P&gt;Use case:&amp;nbsp; i want to find that out of 200 qlik applications, how many are using a particular qvd ..This is because that qvd will not longer be continuing a new qvd with new fields will be replacing it..&lt;/P&gt;
&lt;P&gt;It could be a major use case to other organisations as well!!&lt;/P&gt;
&lt;P&gt;So any kind of technical help would be appreciated! Rest your concept seems good!! @Author&lt;/P&gt;</description>
      <pubDate>Sat, 27 Aug 2022 18:06:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Code-to-export-script/m-p/1973894#M1220677</guid>
      <dc:creator>Manish_Kumar_</dc:creator>
      <dc:date>2022-08-27T18:06:59Z</dc:date>
    </item>
  </channel>
</rss>

