<?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: Insert long field from AS400 (iseries) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Insert-long-field-from-AS400-iseries/m-p/543202#M694273</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dirk,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been looking in the datadescription of the file. And the value of the field is defined by a data-structure.&lt;/P&gt;&lt;P&gt;In this data-structure there is a packed field. And it seems that he cut-off the field at the beginning of the packed value.&lt;/P&gt;&lt;P&gt;Could this be related to the driver?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Jul 2013 10:15:35 GMT</pubDate>
    <dc:creator>kris_vliegen</dc:creator>
    <dc:date>2013-07-05T10:15:35Z</dc:date>
    <item>
      <title>Insert long field from AS400 (iseries)</title>
      <link>https://community.qlik.com/t5/QlikView/Insert-long-field-from-AS400-iseries/m-p/543198#M694269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try to import a field (length = 245 characters) from an AS400 (iseries) database. I only see the first 62 characters in Qlikview.&lt;/P&gt;&lt;P&gt;After the 62 characters there are 14 blanco characters and after those blanco's we have textcharacters. But these textcharacters are not in Qlikview.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible that Qlikview cut off the field after a number of blanco characters? &lt;/P&gt;&lt;P&gt;Or how can I insert all the 245 characters in Qlikview?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jul 2013 07:18:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Insert-long-field-from-AS400-iseries/m-p/543198#M694269</guid>
      <dc:creator>kris_vliegen</dc:creator>
      <dc:date>2013-07-05T07:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: Insert long field from AS400 (iseries)</title>
      <link>https://community.qlik.com/t5/QlikView/Insert-long-field-from-AS400-iseries/m-p/543199#M694270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you get all characters when you load this data in an other application (like Excel) when you conect via ODBC? Maybe it's cut-off by the ODBC driver ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dirk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jul 2013 07:45:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Insert-long-field-from-AS400-iseries/m-p/543199#M694270</guid>
      <dc:creator>dirk_konings</dc:creator>
      <dc:date>2013-07-05T07:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: Insert long field from AS400 (iseries)</title>
      <link>https://community.qlik.com/t5/QlikView/Insert-long-field-from-AS400-iseries/m-p/543200#M694271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dirk,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Excel I see the full field (more than 62 characters). So I don't think it is the ODBC-Driver...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jul 2013 08:19:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Insert-long-field-from-AS400-iseries/m-p/543200#M694271</guid>
      <dc:creator>kris_vliegen</dc:creator>
      <dc:date>2013-07-05T08:19:42Z</dc:date>
    </item>
    <item>
      <title>Re: Insert long field from AS400 (iseries)</title>
      <link>https://community.qlik.com/t5/QlikView/Insert-long-field-from-AS400-iseries/m-p/543201#M694272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kris,&lt;/P&gt;&lt;P&gt;Okay, &lt;/P&gt;&lt;P&gt;I know Qlikview removes trelling spaces but i don't know after how many digits.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried to extract an other field with the same length and fully filled with characters?&lt;/P&gt;&lt;P&gt;What is the length of the field / value in QV? (length(fielda)) Mayby a special character in it, like a CR (Carriage Return)? You wont see the data in a listbox, but could see it in a textbox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dirk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jul 2013 08:47:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Insert-long-field-from-AS400-iseries/m-p/543201#M694272</guid>
      <dc:creator>dirk_konings</dc:creator>
      <dc:date>2013-07-05T08:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: Insert long field from AS400 (iseries)</title>
      <link>https://community.qlik.com/t5/QlikView/Insert-long-field-from-AS400-iseries/m-p/543202#M694273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dirk,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been looking in the datadescription of the file. And the value of the field is defined by a data-structure.&lt;/P&gt;&lt;P&gt;In this data-structure there is a packed field. And it seems that he cut-off the field at the beginning of the packed value.&lt;/P&gt;&lt;P&gt;Could this be related to the driver?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jul 2013 10:15:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Insert-long-field-from-AS400-iseries/m-p/543202#M694273</guid>
      <dc:creator>kris_vliegen</dc:creator>
      <dc:date>2013-07-05T10:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: Insert long field from AS400 (iseries)</title>
      <link>https://community.qlik.com/t5/QlikView/Insert-long-field-from-AS400-iseries/m-p/543203#M694275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This doesn't give a difference.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jul 2013 10:15:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Insert-long-field-from-AS400-iseries/m-p/543203#M694275</guid>
      <dc:creator>kris_vliegen</dc:creator>
      <dc:date>2013-07-05T10:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: Insert long field from AS400 (iseries)</title>
      <link>https://community.qlik.com/t5/QlikView/Insert-long-field-from-AS400-iseries/m-p/543204#M694276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you just split the field in your SQL SELECT statement at the position the PackedDecimal field starts? &lt;/P&gt;&lt;P&gt;This may help. Maybe convert the 2nd part to a integer of varchar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jul 2013 11:23:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Insert-long-field-from-AS400-iseries/m-p/543204#M694276</guid>
      <dc:creator>dirk_konings</dc:creator>
      <dc:date>2013-07-05T11:23:27Z</dc:date>
    </item>
    <item>
      <title>Re: Insert long field from AS400 (iseries)</title>
      <link>https://community.qlik.com/t5/QlikView/Insert-long-field-from-AS400-iseries/m-p/543205#M694277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you mean by this?&lt;/P&gt;&lt;P&gt;PXPSS:&lt;/P&gt;&lt;P&gt;LOAD XPDELC,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; XPKEYF,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; XPFLD1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mid(XPFLD1, 92, 15) as ShortName,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mid(XPFLD1, 84, 3) as Type;&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;FROM S060AE2T.X62FIL700O.PXP where Left(XPKEYF,2) = 'SS' ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because there are no values in ShortName and Type.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jul 2013 11:27:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Insert-long-field-from-AS400-iseries/m-p/543205#M694277</guid>
      <dc:creator>kris_vliegen</dc:creator>
      <dc:date>2013-07-05T11:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: Insert long field from AS400 (iseries)</title>
      <link>https://community.qlik.com/t5/QlikView/Insert-long-field-from-AS400-iseries/m-p/543206#M694278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, now you do the split in the QV section of the script. &lt;/P&gt;&lt;P&gt;You have to do it in the SQL Select part&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load &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;SQL Select mid(CPFLD1,92,15) as ShortName, mid(XPFLD1, 84, 3) as Type from X62FIL700O.PXP&lt;/P&gt;&lt;P&gt;where ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jul 2013 11:30:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Insert-long-field-from-AS400-iseries/m-p/543206#M694278</guid>
      <dc:creator>dirk_konings</dc:creator>
      <dc:date>2013-07-05T11:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: Insert long field from AS400 (iseries)</title>
      <link>https://community.qlik.com/t5/QlikView/Insert-long-field-from-AS400-iseries/m-p/543207#M694279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Dirk!&lt;/P&gt;&lt;P&gt;This is working.&lt;/P&gt;&lt;P&gt;We only need to use "substr" because the AS400 doesn't understand the "mid"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jul 2013 11:42:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Insert-long-field-from-AS400-iseries/m-p/543207#M694279</guid>
      <dc:creator>kris_vliegen</dc:creator>
      <dc:date>2013-07-05T11:42:01Z</dc:date>
    </item>
  </channel>
</rss>

