<?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 AS400 packed decimal field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/AS400-packed-decimal-field/m-p/150231#M28289</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;sjprows wrote:&lt;BR /&gt;I'm not going to attempt to answer the question of bugs with AS400. I can share with you one solve I have used when dealing with strange formatting issues. I will also say up front here that I don't know the difference between the two functions, and the QV documentation is very poor in this area, but QV has a couple of number formatting functions:&lt;BR /&gt;Num()&lt;BR /&gt;Num#()&lt;BR /&gt;I used Num#() once out of desperation when trying to format a column I was pulling from a table and it seemed to work much better.&lt;BR /&gt;Sorry i am not more help. Hopefully this may give you a work-around until you can determind the root cause.&lt;BR /&gt;&lt;BR /&gt;sjprows&amp;lt;div&amp;gt;&amp;lt;/div&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually one is a formatting function and the other is an interpretation (input) function. If you are familiar with SAS, formatting -- num() -- is like a SAS "format" and interpretation -- num#() -- is like a SAS "informat".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Jul 2009 02:45:25 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2009-07-24T02:45:25Z</dc:date>
    <item>
      <title>AS400 packed decimal field</title>
      <link>https://community.qlik.com/t5/QlikView/AS400-packed-decimal-field/m-p/150229#M28287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two identical calculations in my script. The first always works just fine, but the second returns does load. Usually the values are the same, but in some cases they may be different. Sources data field is AS400 packed(decimal, 15,6). Are there any bugs with num function with AS400 packed fields. I have verified the source data, the load script and the result, but this strange occurence just not make any sense.&lt;/P&gt;&lt;P&gt;num&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(SPLCAB, '0000.000000') &lt;B&gt;AS&lt;/B&gt; LOCAL_SALES_PRICE&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;num&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(SPOCAB, '0000.000000') &lt;B&gt;AS&lt;/B&gt; SALES_PRICE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone experience anything like this or knows what could be causing the problem.&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2009 01:31:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AS400-packed-decimal-field/m-p/150229#M28287</guid>
      <dc:creator>karensmith</dc:creator>
      <dc:date>2009-07-24T01:31:32Z</dc:date>
    </item>
    <item>
      <title>AS400 packed decimal field</title>
      <link>https://community.qlik.com/t5/QlikView/AS400-packed-decimal-field/m-p/150230#M28288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not going to attempt to answer the question of bugs with AS400. I can share with you one solve I have used when dealing with strange formatting issues. I will also say up front here that I don't know the difference between the two functions, and the QV documentation is very poor in this area, but QV has a couple of number formatting functions:&lt;/P&gt;&lt;P&gt;Num()&lt;/P&gt;&lt;P&gt;Num#()&lt;/P&gt;&lt;P&gt;I used Num#() once out of desperation when trying to format a column I was pulling from a table and it seemed to work much better.&lt;/P&gt;&lt;P&gt;Sorry i am not more help. Hopefully this may give you a work-around until you can determind the root cause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sjprows&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2009 02:07:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AS400-packed-decimal-field/m-p/150230#M28288</guid>
      <dc:creator />
      <dc:date>2009-07-24T02:07:45Z</dc:date>
    </item>
    <item>
      <title>AS400 packed decimal field</title>
      <link>https://community.qlik.com/t5/QlikView/AS400-packed-decimal-field/m-p/150231#M28289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;sjprows wrote:&lt;BR /&gt;I'm not going to attempt to answer the question of bugs with AS400. I can share with you one solve I have used when dealing with strange formatting issues. I will also say up front here that I don't know the difference between the two functions, and the QV documentation is very poor in this area, but QV has a couple of number formatting functions:&lt;BR /&gt;Num()&lt;BR /&gt;Num#()&lt;BR /&gt;I used Num#() once out of desperation when trying to format a column I was pulling from a table and it seemed to work much better.&lt;BR /&gt;Sorry i am not more help. Hopefully this may give you a work-around until you can determind the root cause.&lt;BR /&gt;&lt;BR /&gt;sjprows&amp;lt;div&amp;gt;&amp;lt;/div&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually one is a formatting function and the other is an interpretation (input) function. If you are familiar with SAS, formatting -- num() -- is like a SAS "format" and interpretation -- num#() -- is like a SAS "informat".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2009 02:45:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AS400-packed-decimal-field/m-p/150231#M28289</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2009-07-24T02:45:25Z</dc:date>
    </item>
    <item>
      <title>AS400 packed decimal field</title>
      <link>https://community.qlik.com/t5/QlikView/AS400-packed-decimal-field/m-p/150232#M28290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;KarenSmith wrote:but in some cases they may be different&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Can you give a sample of some of the data and the incorrect results you are seeing? What does the data look like if you don't use the num function at all?&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2009 02:48:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AS400-packed-decimal-field/m-p/150232#M28290</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2009-07-24T02:48:41Z</dc:date>
    </item>
    <item>
      <title>AS400 packed decimal field</title>
      <link>https://community.qlik.com/t5/QlikView/AS400-packed-decimal-field/m-p/150233#M28291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;I realized the problem is with my join statment here it is below.&lt;/P&gt;&lt;P style="font-weight: bold"&gt;I have load&lt;/P&gt;&lt;P style="font-weight: bold"&gt;......&lt;/P&gt;&lt;P style="font-weight: bold"&gt;then sql statement:&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;SQL&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;SELECT&lt;/B&gt; *&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;FROM&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;S10A5929.USSOMEA.SMABP00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEFT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OUTER JOIN S10A5929.ULCLMEA.MEAPDP02&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ON&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;S10A5929.USSOMEA.SMABP00.CARDAB = S10A5929.ULCLMEA.MEAPDP02.CARDAB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHERE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;S10A5929.USSOMEA.SMABP00.STATAB = ' ' AND S10A5929.USSOMEA.SMABP00.ORDCAB = '';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the following statement works fine from SQL session of AS400 the only difference is the qualifer names. is there something wrong with QV syntax?&lt;/P&gt;&lt;P&gt;SELECT *&lt;BR /&gt;FROM USSOMEA/SMABP00&lt;BR /&gt;LEFT OUTER JOIN ULCLMEA/MEAPDP02&lt;BR /&gt;ON SMABP00.CARDAB = MEAPDP02.CARDAB&lt;BR /&gt;WHERE STATAB = ' ' AND SMABP00.ORDCAB IN('','P')&lt;BR /&gt;ORDER BY SMABP00.CARDAB ASC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2009 03:43:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AS400-packed-decimal-field/m-p/150233#M28291</guid>
      <dc:creator>karensmith</dc:creator>
      <dc:date>2009-07-24T03:43:02Z</dc:date>
    </item>
    <item>
      <title>AS400 packed decimal field</title>
      <link>https://community.qlik.com/t5/QlikView/AS400-packed-decimal-field/m-p/150234#M28292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The SQL is executed by the ODBC driver and the database, not QV, so there should not be a problem caused by QV.&lt;/P&gt;&lt;P&gt;How does the data look if you don't do the preceeding load -- that is, just use the SQL select in the script to get the raw data?&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2009 05:24:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AS400-packed-decimal-field/m-p/150234#M28292</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2009-07-24T05:24:30Z</dc:date>
    </item>
    <item>
      <title>AS400 packed decimal field</title>
      <link>https://community.qlik.com/t5/QlikView/AS400-packed-decimal-field/m-p/150235#M28293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rob,&lt;/P&gt;&lt;P&gt;Query ran fine without load; as a select * sql statement alone, but this makes no sense to me. Shouldn't it be possible to use load and sql? my load statement had many qv functionality. do you have any other recommendations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2009 05:58:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AS400-packed-decimal-field/m-p/150235#M28293</guid>
      <dc:creator>karensmith</dc:creator>
      <dc:date>2009-07-24T05:58:28Z</dc:date>
    </item>
    <item>
      <title>AS400 packed decimal field</title>
      <link>https://community.qlik.com/t5/QlikView/AS400-packed-decimal-field/m-p/150236#M28294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;KarenSmith wrote:Shouldn't it be possible to use load and sql? my load statement had many qv functionality. do you have any other recommendations.&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Now that you've confirmed that the SQL data is coming across fine, examine what the load is doing to your data -- the table itself and the relationships to other tables. I'm assuming your LOAD is more complex than "LOAD *". If you have further questions, post the qvw if possible.&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2009 06:13:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AS400-packed-decimal-field/m-p/150236#M28294</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2009-07-24T06:13:47Z</dc:date>
    </item>
    <item>
      <title>AS400 packed decimal field</title>
      <link>https://community.qlik.com/t5/QlikView/AS400-packed-decimal-field/m-p/150237#M28295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will continue to look at my load statment. I will also post qvw. Just need to figure out how.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2009 06:24:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AS400-packed-decimal-field/m-p/150237#M28295</guid>
      <dc:creator>karensmith</dc:creator>
      <dc:date>2009-07-24T06:24:49Z</dc:date>
    </item>
  </channel>
</rss>

