<?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: Dollar-Sign Expansion with Parameters - Include in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dollar-Sign-Expansion-with-Parameters-Include/m-p/388821#M702048</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aldo, as the Include statement is simply inserting the saved script into your script you can just reference the variable in the saved script script and declare it in your qvw script for example if the following was saved in a test.qvs file:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ASCII:&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt; if(RecNo()&amp;gt;=65 and RecNo()&amp;lt;=90,RecNo()-64) as Num,&lt;/P&gt;&lt;P&gt; Chr(RecNo()) as AsciiAlpha, &lt;/P&gt;&lt;P&gt; RecNo() as AsciiNum&lt;/P&gt;&lt;P&gt;autogenerate 255&lt;/P&gt;&lt;P&gt; Where (RecNo()&amp;gt;=32 and RecNo()&amp;lt;=$(vXXX)) or RecNo()&amp;gt;=160 ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can define the variable vXXX in your main script and it will be passed intrinsically ie :&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;set vXXX = 126;&lt;/P&gt;&lt;P&gt;$(Include=C:\test.qvs)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Sep 2012 12:13:22 GMT</pubDate>
    <dc:creator>sbaldwin</dc:creator>
    <dc:date>2012-09-11T12:13:22Z</dc:date>
    <item>
      <title>Dollar-Sign Expansion with Parameters - Include</title>
      <link>https://community.qlik.com/t5/QlikView/Dollar-Sign-Expansion-with-Parameters-Include/m-p/388820#M702047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I use the following to call a qvs file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$(include=...My_QV-Script.qvs)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I pass to the file a couple of variables as parameters?&amp;nbsp; vVar1, vVar2 ?&lt;/P&gt;&lt;P&gt;How do I call parameters value in my qvs file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Aldo.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Sep 2012 18:51:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dollar-Sign-Expansion-with-Parameters-Include/m-p/388820#M702047</guid>
      <dc:creator />
      <dc:date>2012-09-09T18:51:42Z</dc:date>
    </item>
    <item>
      <title>Re: Dollar-Sign Expansion with Parameters - Include</title>
      <link>https://community.qlik.com/t5/QlikView/Dollar-Sign-Expansion-with-Parameters-Include/m-p/388821#M702048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aldo, as the Include statement is simply inserting the saved script into your script you can just reference the variable in the saved script script and declare it in your qvw script for example if the following was saved in a test.qvs file:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ASCII:&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt; if(RecNo()&amp;gt;=65 and RecNo()&amp;lt;=90,RecNo()-64) as Num,&lt;/P&gt;&lt;P&gt; Chr(RecNo()) as AsciiAlpha, &lt;/P&gt;&lt;P&gt; RecNo() as AsciiNum&lt;/P&gt;&lt;P&gt;autogenerate 255&lt;/P&gt;&lt;P&gt; Where (RecNo()&amp;gt;=32 and RecNo()&amp;lt;=$(vXXX)) or RecNo()&amp;gt;=160 ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can define the variable vXXX in your main script and it will be passed intrinsically ie :&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;set vXXX = 126;&lt;/P&gt;&lt;P&gt;$(Include=C:\test.qvs)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2012 12:13:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dollar-Sign-Expansion-with-Parameters-Include/m-p/388821#M702048</guid>
      <dc:creator>sbaldwin</dc:creator>
      <dc:date>2012-09-11T12:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: Dollar-Sign Expansion with Parameters - Include</title>
      <link>https://community.qlik.com/t5/QlikView/Dollar-Sign-Expansion-with-Parameters-Include/m-p/388822#M702049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steve,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's exacly the workaround I used.&lt;/P&gt;&lt;P&gt;I am pretty sure there is a possibility to pass variables as parameters fo the call to qvs file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Aldo.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2012 20:11:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dollar-Sign-Expansion-with-Parameters-Include/m-p/388822#M702049</guid>
      <dc:creator />
      <dc:date>2012-09-11T20:11:15Z</dc:date>
    </item>
  </channel>
</rss>

