<?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 Storing loaded data in a variable. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Storing-loaded-data-in-a-variable/m-p/239406#M90033</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure why it's happening, but it shouldn't happen if you do the rename on the LOAD side instead of the SQL side.&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;ReloadTime:&lt;BR /&gt;LOAD sysdate as CurrentTime&lt;BR /&gt;;&lt;BR /&gt;SQL SELECT sysdate&lt;BR /&gt;FROM dual&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;Though I'm not entirely certain I'm understanding.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 May 2010 00:37:56 GMT</pubDate>
    <dc:creator>johnw</dc:creator>
    <dc:date>2010-05-13T00:37:56Z</dc:date>
    <item>
      <title>Storing loaded data in a variable.</title>
      <link>https://community.qlik.com/t5/QlikView/Storing-loaded-data-in-a-variable/m-p/239404#M90031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Qlikers,&lt;/P&gt;&lt;P&gt;I have an incremental load script that uses the last reaload time to establish what's new in the database. the problem is, my QVS and my database server are in different timezones.&lt;/P&gt;&lt;P&gt;So, what I need to do is determine the reload time based on what time the database thinks it is. I can do that just fine with an oracle query. I'm loading that value into a table in my reload script, but I can't get any of the functions that are supposed to retrieve this data from the table to work properly. In the code included below, all of the statements after the load return set my LastExecTime to &amp;lt;NULL&amp;gt;. I have confirmed by displaying the field on the worksheet after the load script completes, so I know that the data is there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;ReloadTime:&lt;BR /&gt; SQL select sysdate as CurrentTime&lt;BR /&gt; from dual;&lt;BR /&gt;LET LastExecTime = Peek('CurrentTime',0,'ReloadTime');&lt;BR /&gt;LET LastExecTime = Peek('CurrentTime',-1,'ReloadTime');&lt;BR /&gt;LET LastExecTime = FieldValue('CurrentTime',1);&lt;BR /&gt; LET LastExecTime = num(Peek('CurrentTime',0,'ReloadTime'));&lt;BR /&gt; LET LastExecTime = num(Peek('CurrentTime',-1,'ReloadTime'));&lt;BR /&gt; LET LastExecTime = num(FieldValue('CurrentTime',1));&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 May 2010 19:32:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Storing-loaded-data-in-a-variable/m-p/239404#M90031</guid>
      <dc:creator />
      <dc:date>2010-05-12T19:32:36Z</dc:date>
    </item>
    <item>
      <title>Storing loaded data in a variable.</title>
      <link>https://community.qlik.com/t5/QlikView/Storing-loaded-data-in-a-variable/m-p/239405#M90032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;YEARGH!&lt;/P&gt;&lt;P&gt;Qlikview aliases all of the fields I attempt to load in a SQL SELECT statement to the same field name, but in all caps. My function calls were returning null because it can't 'CurrentTime', qlikview helpfully changed it to 'CURRENTTIME'.&lt;/P&gt;&lt;P&gt;Argh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 May 2010 19:59:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Storing-loaded-data-in-a-variable/m-p/239405#M90032</guid>
      <dc:creator />
      <dc:date>2010-05-12T19:59:13Z</dc:date>
    </item>
    <item>
      <title>Storing loaded data in a variable.</title>
      <link>https://community.qlik.com/t5/QlikView/Storing-loaded-data-in-a-variable/m-p/239406#M90033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure why it's happening, but it shouldn't happen if you do the rename on the LOAD side instead of the SQL side.&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;ReloadTime:&lt;BR /&gt;LOAD sysdate as CurrentTime&lt;BR /&gt;;&lt;BR /&gt;SQL SELECT sysdate&lt;BR /&gt;FROM dual&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;Though I'm not entirely certain I'm understanding.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 May 2010 00:37:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Storing-loaded-data-in-a-variable/m-p/239406#M90033</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-05-13T00:37:56Z</dc:date>
    </item>
  </channel>
</rss>

