<?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: Only save to text file in script if data is present in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Only-save-to-text-file-in-script-if-data-is-present/m-p/1209288#M626488</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if noofrows('PAYMENT') &amp;gt;= 1 then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; store ....&lt;/P&gt;&lt;P&gt;end if&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, 10 Oct 2016 09:55:22 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2016-10-10T09:55:22Z</dc:date>
    <item>
      <title>Only save to text file in script if data is present</title>
      <link>https://community.qlik.com/t5/QlikView/Only-save-to-text-file-in-script-if-data-is-present/m-p/1209287#M626486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;I have a script that stores the contents of a table into a text file every hour with the last hours data using a where clause when I load in the data to the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;store&lt;/STRONG&gt;&lt;/SPAN&gt; PAYMENT &lt;SPAN style="color: #0000ff;"&gt;into&lt;/SPAN&gt; '\\Data Team\Hourly_Deltas\PAYMENT_DELTA-'&lt;STRONG&gt;&lt;EM style=": ; color: #808080;"&gt;$(vDateTime)&lt;/EM&gt;&lt;/STRONG&gt;.txt (&lt;SPAN style="color: #0000ff;"&gt;txt&lt;/SPAN&gt;, &lt;SPAN style="color: #0000ff;"&gt;delimiter&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;is&lt;/SPAN&gt; ','); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;This works very well, BUT, what I would like to do is to only store the table as a text if there is data there, is there a way to do this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;So, sometimes there is no data and I get a text file with just field headers in it, I only want the text files if there is data as well as field headers.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thank you for your help, Simon&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2016 09:53:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Only-save-to-text-file-in-script-if-data-is-present/m-p/1209287#M626486</guid>
      <dc:creator />
      <dc:date>2016-10-10T09:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: Only save to text file in script if data is present</title>
      <link>https://community.qlik.com/t5/QlikView/Only-save-to-text-file-in-script-if-data-is-present/m-p/1209288#M626488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if noofrows('PAYMENT') &amp;gt;= 1 then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; store ....&lt;/P&gt;&lt;P&gt;end if&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, 10 Oct 2016 09:55:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Only-save-to-text-file-in-script-if-data-is-present/m-p/1209288#M626488</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-10-10T09:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: Only save to text file in script if data is present</title>
      <link>https://community.qlik.com/t5/QlikView/Only-save-to-text-file-in-script-if-data-is-present/m-p/1209289#M626490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much &lt;A href="https://community.qlik.com/qlik-users/27943"&gt;marcus_sommer&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2016 10:18:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Only-save-to-text-file-in-script-if-data-is-present/m-p/1209289#M626490</guid>
      <dc:creator />
      <dc:date>2016-10-10T10:18:51Z</dc:date>
    </item>
  </channel>
</rss>

