<?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: Script calling another script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Script-calling-another-script/m-p/481161#M1139574</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramya, &lt;/P&gt;&lt;P&gt;As per my understanding for your query , I have some idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can make use of subroutines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub Test(vTable)&lt;/P&gt;&lt;P&gt;$(vTable):&lt;/P&gt;&lt;P&gt;Load * from $(vTable);&lt;/P&gt;&lt;P&gt;End Sub;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This can be your actual code which you write once in qlikview script itself and you can call n number of times later. Like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call Test('Pass the actual table name here')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have specific code or requirement, post you qvw&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Sep 2013 06:15:39 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-09-26T06:15:39Z</dc:date>
    <item>
      <title>Script calling another script</title>
      <link>https://community.qlik.com/t5/QlikView/Script-calling-another-script/m-p/481153#M1139566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;Is it possible to call one script from another?&lt;/P&gt;&lt;P&gt;In fact I have a script which needs to be executed at several times.&lt;/P&gt;&lt;P&gt;Its like defining a function and calling them over and over whenever needed.&lt;/P&gt;&lt;P&gt;I am not sure if it is possible or even a recommended way of writing scripts.&lt;/P&gt;&lt;P&gt;In case it is not a recommended way then how do we solve this kind of problem where a script needs to be executed at several points from different scripts?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Saurabh &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Sep 2013 00:19:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-calling-another-script/m-p/481153#M1139566</guid>
      <dc:creator />
      <dc:date>2013-09-26T00:19:14Z</dc:date>
    </item>
    <item>
      <title>Re: Script calling another script</title>
      <link>https://community.qlik.com/t5/QlikView/Script-calling-another-script/m-p/481154#M1139567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramya,&lt;/P&gt;&lt;P&gt;Place your script in a .txt or .qvs file and include this script file in QVW like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;EM style="color: #646464; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #646464; font-size: 8pt;"&gt;&amp;nbsp; &lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;$(Include=c:\DataLoadScript.txt) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you reload the script in the text file executes.&amp;nbsp; Like this you can use in any n number of QVW files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM style="color: #646464; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Sep 2013 02:27:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-calling-another-script/m-p/481154#M1139567</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2013-09-26T02:27:29Z</dc:date>
    </item>
    <item>
      <title>Re: Script calling another script</title>
      <link>https://community.qlik.com/t5/QlikView/Script-calling-another-script/m-p/481155#M1139568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Save your script in a txt file and you can use the include command.&lt;/P&gt;&lt;P&gt;Ex.&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13801636628941589" jivemacro_uid="_13801636628941589" modifiedtitle="true"&gt;
&lt;P&gt;$(Include=include\ScriptInExternalFile.txt);&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards.&lt;/P&gt;&lt;P&gt;Tonial.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Sep 2013 02:48:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-calling-another-script/m-p/481155#M1139568</guid>
      <dc:creator>fernando_tonial</dc:creator>
      <dc:date>2013-09-26T02:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: Script calling another script</title>
      <link>https://community.qlik.com/t5/QlikView/Script-calling-another-script/m-p/481156#M1139569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;yes it is possible. You can create the script in a txt file and then you just have to &lt;STRONG&gt;include&lt;/STRONG&gt; the script whenever you want to execute it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Sep 2013 02:56:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-calling-another-script/m-p/481156#M1139569</guid>
      <dc:creator>vivek_niti</dc:creator>
      <dc:date>2013-09-26T02:56:05Z</dc:date>
    </item>
    <item>
      <title>Re: Script calling another script</title>
      <link>https://community.qlik.com/t5/QlikView/Script-calling-another-script/m-p/481157#M1139570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure if you could write a function inside script but try using a For loop or a Do While loop inside your script and repeat whatever is necessary to be executed multiple times.&lt;/P&gt;&lt;P&gt;you can check the below link for more on loops&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2013/09/02/loops-in-the-script"&gt;http://community.qlik.com/blogs/qlikviewdesignblog/2013/09/02/loops-in-the-script&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Sep 2013 03:01:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-calling-another-script/m-p/481157#M1139570</guid>
      <dc:creator>amars</dc:creator>
      <dc:date>2013-09-26T03:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: Script calling another script</title>
      <link>https://community.qlik.com/t5/QlikView/Script-calling-another-script/m-p/481158#M1139571</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;Ramya why you go for different script for using&amp;nbsp; functions you just use in the same script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the sample function calling. we are writing a function for finding difference between two dates&lt;/P&gt;&lt;P&gt;SET MonthDiff = Num(((year($2) * 12) + month($2)) - (((year($1) * 12) + month($1))) + 1); &lt;/P&gt;&lt;P&gt;$2-&amp;gt;Parameter2&lt;/P&gt;&lt;P&gt;$1-&amp;gt;Parameter1&lt;/P&gt;&lt;P&gt;Function calling:&lt;/P&gt;&lt;P&gt;($(MonthDiff(Parameter1, Parameter2)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will help you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;S.Amuthabharathi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Sep 2013 03:56:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-calling-another-script/m-p/481158#M1139571</guid>
      <dc:creator />
      <dc:date>2013-09-26T03:56:03Z</dc:date>
    </item>
    <item>
      <title>Re: Script calling another script</title>
      <link>https://community.qlik.com/t5/QlikView/Script-calling-another-script/m-p/481159#M1139572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can write macro function and call it in the script as and where needed. For more understanding refer &lt;A _jive_internal="true" href="https://community.qlik.com/message/368885#368885"&gt;this post&lt;/A&gt; . As of now you can't create function in the script,let's hope that would be incorporated in coming versions. Refer &lt;A _jive_internal="true" href="https://community.qlik.com/ideas/2206"&gt;this&lt;/A&gt; for a related idea sharing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Sep 2013 03:58:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-calling-another-script/m-p/481159#M1139572</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-09-26T03:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: Script calling another script</title>
      <link>https://community.qlik.com/t5/QlikView/Script-calling-another-script/m-p/481160#M1139573</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;the above suggestion are good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if u need more&lt;/P&gt;&lt;P&gt;we have &lt;STRONG&gt;call&lt;/STRONG&gt; and &lt;STRONG&gt;sub&lt;/STRONG&gt; function is there please check this functions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write the script in the sub function&lt;/P&gt;&lt;P&gt;and &lt;/P&gt;&lt;P&gt;call it by using call function&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Sep 2013 05:21:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-calling-another-script/m-p/481160#M1139573</guid>
      <dc:creator />
      <dc:date>2013-09-26T05:21:28Z</dc:date>
    </item>
    <item>
      <title>Re: Script calling another script</title>
      <link>https://community.qlik.com/t5/QlikView/Script-calling-another-script/m-p/481161#M1139574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramya, &lt;/P&gt;&lt;P&gt;As per my understanding for your query , I have some idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can make use of subroutines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub Test(vTable)&lt;/P&gt;&lt;P&gt;$(vTable):&lt;/P&gt;&lt;P&gt;Load * from $(vTable);&lt;/P&gt;&lt;P&gt;End Sub;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This can be your actual code which you write once in qlikview script itself and you can call n number of times later. Like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call Test('Pass the actual table name here')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have specific code or requirement, post you qvw&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Sep 2013 06:15:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-calling-another-script/m-p/481161#M1139574</guid>
      <dc:creator />
      <dc:date>2013-09-26T06:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: Script calling another script</title>
      <link>https://community.qlik.com/t5/QlikView/Script-calling-another-script/m-p/481162#M1139575</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;Yes, it is possible. You can write your script in a text file and then include that file in your script.Something like this :&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;$(Include = C:\Myself\Qlikview\test.txt);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Where test.txt is the text file where your script is written. You can include this file wherever you want in your script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Sep 2013 06:31:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-calling-another-script/m-p/481162#M1139575</guid>
      <dc:creator />
      <dc:date>2013-09-26T06:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: Script calling another script</title>
      <link>https://community.qlik.com/t5/QlikView/Script-calling-another-script/m-p/481163#M1139576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Suneela!&lt;/P&gt;&lt;P&gt;This is what I was looking for.&lt;/P&gt;&lt;P&gt;BTW...does Qlikview have namespace?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Sep 2013 16:54:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-calling-another-script/m-p/481163#M1139576</guid>
      <dc:creator />
      <dc:date>2013-09-26T16:54:33Z</dc:date>
    </item>
    <item>
      <title>Re: Script calling another script</title>
      <link>https://community.qlik.com/t5/QlikView/Script-calling-another-script/m-p/481164#M1139577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi Ramya,&lt;/P&gt;&lt;P&gt;There is no concept of Namespace in Qlikview.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Sep 2013 01:45:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-calling-another-script/m-p/481164#M1139577</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2013-09-27T01:45:22Z</dc:date>
    </item>
  </channel>
</rss>

