<?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: Using variables for filenames... in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-variables-for-filenames/m-p/1237326#M393388</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;Assuming that your QVW file is in the root folder's project, try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vTestPath = '..\folder1\subfolder1\project';&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Let vProdPath = '..\folder2\subfolder2\project';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;STORE ThisTable INTO $(vTestPath)\QVDFilename.qvd;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;STORE ThisTable INTO $(vProdPath)\QVDFilename.qvd;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Hope this help.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Regads,&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Jan 2017 18:14:56 GMT</pubDate>
    <dc:creator>eespiritu</dc:creator>
    <dc:date>2017-01-25T18:14:56Z</dc:date>
    <item>
      <title>Using variables for filenames...</title>
      <link>https://community.qlik.com/t5/QlikView/Using-variables-for-filenames/m-p/1237325#M393387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to create QVD's for either production or test side and looking to use parameterized to variables to simplify the scripts.&lt;/P&gt;&lt;P&gt;For example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Test side - folder1\subfolder1\project\tablename-test.qvd&lt;/P&gt;&lt;P&gt;Prod side - folder2\subfolder2\project\tablename-prod.qvd&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vEnvironment = 'prod';&lt;/P&gt;&lt;P&gt;LET vFolder = if(vEnvironment='prod','folder2\subfolder2\','folder1\subfolder1');&lt;/P&gt;&lt;P&gt;SET vQVDFilename = $(vFolder) &amp;amp; 'project\' &amp;amp; $1 &amp;amp; '-' &amp;amp; $(vEnvironment) &amp;amp; '.QVD';&lt;/P&gt;&lt;P&gt;//$1 is the tablename&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STORE thistable INTO $(vQVDFilename('table')) (qvd);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2017 18:01:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-variables-for-filenames/m-p/1237325#M393387</guid>
      <dc:creator>markp201</dc:creator>
      <dc:date>2017-01-25T18:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: Using variables for filenames...</title>
      <link>https://community.qlik.com/t5/QlikView/Using-variables-for-filenames/m-p/1237326#M393388</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;Assuming that your QVW file is in the root folder's project, try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vTestPath = '..\folder1\subfolder1\project';&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Let vProdPath = '..\folder2\subfolder2\project';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;STORE ThisTable INTO $(vTestPath)\QVDFilename.qvd;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;STORE ThisTable INTO $(vProdPath)\QVDFilename.qvd;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Hope this help.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Regads,&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2017 18:14:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-variables-for-filenames/m-p/1237326#M393388</guid>
      <dc:creator>eespiritu</dc:creator>
      <dc:date>2017-01-25T18:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: Using variables for filenames...</title>
      <link>https://community.qlik.com/t5/QlikView/Using-variables-for-filenames/m-p/1237327#M393389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need the table in the QVD filename so &lt;/P&gt;&lt;P&gt;\Prod-Table-QVD.qvd&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;\Test-Table-QVD.qvd&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to have a single set of store commands for test or prod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2017 18:21:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-variables-for-filenames/m-p/1237327#M393389</guid>
      <dc:creator>markp201</dc:creator>
      <dc:date>2017-01-25T18:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: Using variables for filenames...</title>
      <link>https://community.qlik.com/t5/QlikView/Using-variables-for-filenames/m-p/1237328#M393390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;LET vEnvironment = 'prod';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;if '$(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vEnvironment&lt;/SPAN&gt;)' = 'prod' then&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;Let vPath = '..\folder2\subfolder2\project\Prod-';&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;else&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Let vPath = '..\folder1\subfolder1\project\Test-';&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;end if&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;STORE YourTempTable INTO $(vPath)TableName-QVD.qvd;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2017 18:39:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-variables-for-filenames/m-p/1237328#M393390</guid>
      <dc:creator>eespiritu</dc:creator>
      <dc:date>2017-01-25T18:39:19Z</dc:date>
    </item>
  </channel>
</rss>

