<?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: Base HEX to ASCII Challenge in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Base-HEX-to-ASCII-Challenge/m-p/913556#M316915</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This must be a IBM EBCDIC to ANSI character set conversion thing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QlikView is able to read files in EBCDIC code pages. So wouldn't it be easier to specify this in your LOAD-statement?&lt;/P&gt;&lt;P&gt;If it is coming from a database the ODBC-driver should be configurable to handle EBCDIC to ASCII/ANSI conversion.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Aug 2015 10:49:07 GMT</pubDate>
    <dc:creator>petter</dc:creator>
    <dc:date>2015-08-06T10:49:07Z</dc:date>
    <item>
      <title>Base HEX to ASCII Challenge</title>
      <link>https://community.qlik.com/t5/QlikView/Base-HEX-to-ASCII-Challenge/m-p/913552#M316911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a field in Hex code and I need to convert it into ASCII Code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's an example of what I'm saying with the Hexcode and my desired result :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 951px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" width="49"&gt;ID&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="485"&gt;HEX&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="417"&gt;DesiredResult&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top: none;" width="49"&gt;1&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;" width="485"&gt;C2D6C2C9D54BD9C5E3D9C1C3E3C9D340D4C1D54BF5F0C3D440F2F3D4C9C3&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;" width="417"&gt;BOBIN.RETRACTIL MAN.50CM 23MIC&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top: none;" width="49"&gt;2&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;" width="485"&gt;C260E2C1D540C2C1D9D84BC3C8D6C3D640E2C9D540C1E94B404040404040&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;" width="417"&gt;B-SAN BARQ.CHOCO SIN AZ.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top: none;" width="49"&gt;3&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;" width="485"&gt;C240D5C9E3C1C3D9C5D44040404040404040404040404040404040404040&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;" width="417"&gt;B NITACREM&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table of 70 rows with the correlation between HEX and ASCII :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 160px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" width="80"&gt;BaseHex&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="80"&gt;BaseABC&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top: none;" width="80"&gt;C1&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;" width="80"&gt;A&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top: none;" width="80"&gt;C2&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;" width="80"&gt;B&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top: none;" width="80"&gt;C3&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;" width="80"&gt;C&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top: none;" width="80"&gt;C4&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;" width="80"&gt;D&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top: none;" width="80"&gt;C5&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;" width="80"&gt;E&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top: none;" width="80"&gt;…&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;" width="80"&gt;…&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to do it as optimal as possible.&lt;/P&gt;&lt;P&gt;A possible solution would be using replace() function 70 times in order to change the HEX origin into DesiredResult. But I'm trying to do it using some kind of loop thing with mapping tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How will you solve that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've attached the two origins in excel if you want to try.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Marcel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2015 10:05:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Base-HEX-to-ASCII-Challenge/m-p/913552#M316911</guid>
      <dc:creator>marcel_olmo</dc:creator>
      <dc:date>2015-08-06T10:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: Base HEX to ASCII Challenge</title>
      <link>https://community.qlik.com/t5/QlikView/Base-HEX-to-ASCII-Challenge/m-p/913553#M316912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This works:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MapHexToAscii:&lt;/P&gt;&lt;P&gt;Mapping LOAD * &lt;/P&gt;&lt;P&gt;Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;Code Char&lt;/P&gt;&lt;P&gt;C1 A&lt;/P&gt;&lt;P&gt;C2 B&lt;/P&gt;&lt;P&gt;C3 C&lt;/P&gt;&lt;P&gt;C4 D&lt;/P&gt;&lt;P&gt;C5 E&lt;/P&gt;&lt;P&gt;C6 F&lt;/P&gt;&lt;P&gt;C7 G&lt;/P&gt;&lt;P&gt;C8 H&lt;/P&gt;&lt;P&gt;C9 I&lt;/P&gt;&lt;P&gt;D0&lt;/P&gt;&lt;P&gt;D1 J&lt;/P&gt;&lt;P&gt;D2 K&lt;/P&gt;&lt;P&gt;D3 L&lt;/P&gt;&lt;P&gt;D4 M&lt;/P&gt;&lt;P&gt;D5 N&lt;/P&gt;&lt;P&gt;D6 O&lt;/P&gt;&lt;P&gt;D7 P&lt;/P&gt;&lt;P&gt;D8 Q&lt;/P&gt;&lt;P&gt;D9 R&lt;/P&gt;&lt;P&gt;E1&lt;/P&gt;&lt;P&gt;E2 S&lt;/P&gt;&lt;P&gt;E3 T&lt;/P&gt;&lt;P&gt;E4 U&lt;/P&gt;&lt;P&gt;E5 V&lt;/P&gt;&lt;P&gt;E6 W&lt;/P&gt;&lt;P&gt;E7 X&lt;/P&gt;&lt;P&gt;E8 Y&lt;/P&gt;&lt;P&gt;E9 Z&lt;/P&gt;&lt;P&gt;60 -&lt;/P&gt;&lt;P&gt;40&amp;nbsp; &lt;/P&gt;&lt;P&gt;4B .&lt;/P&gt;&lt;P&gt;F0 0&lt;/P&gt;&lt;P&gt;F1 1&lt;/P&gt;&lt;P&gt;F2 2&lt;/P&gt;&lt;P&gt;F3 3&lt;/P&gt;&lt;P&gt;F4 4&lt;/P&gt;&lt;P&gt;F5 5&lt;/P&gt;&lt;P&gt;F6 6&lt;/P&gt;&lt;P&gt;F7 7&lt;/P&gt;&lt;P&gt;F8 8&lt;/P&gt;&lt;P&gt;F9 9&lt;/P&gt;&lt;P&gt;6C %&lt;/P&gt;&lt;P&gt;61 /&lt;/P&gt;&lt;P&gt;7B Ñ&lt;/P&gt;&lt;P&gt;4E +&lt;/P&gt;&lt;P&gt;7F "&lt;/P&gt;&lt;P&gt;4D (&lt;/P&gt;&lt;P&gt;5D )&lt;/P&gt;&lt;P&gt;6B ,&lt;/P&gt;&lt;P&gt;7D '&lt;/P&gt;&lt;P&gt;] (delimiter is '\t');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;LOAD ID, HEX, MapSubstring('MapHexToAscii', HEX) As Decode&lt;/P&gt;&lt;P&gt;Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;ID HEX&lt;/P&gt;&lt;P&gt;1 C2D6C2C9D54BD9C5E3D9C1C3E3C9D340D4C1D54BF5F0C3D440F2F3D4C9C3&lt;/P&gt;&lt;P&gt;2 C260E2C1D540C2C1D9D84BC3C8D6C3D640E2C9D540C1E94B404040404040&lt;/P&gt;&lt;P&gt;3 C240D5C9E3C1C3D9C5D44040404040404040404040404040404040404040&lt;/P&gt;&lt;P&gt;] (delimiter is '\t');&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2015 10:24:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Base-HEX-to-ASCII-Challenge/m-p/913553#M316912</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-08-06T10:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: Base HEX to ASCII Challenge</title>
      <link>https://community.qlik.com/t5/QlikView/Base-HEX-to-ASCII-Challenge/m-p/913554#M316913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="decode.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/95201_decode.png" style="height: 58px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2015 10:36:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Base-HEX-to-ASCII-Challenge/m-p/913554#M316913</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-08-06T10:36:30Z</dc:date>
    </item>
    <item>
      <title>Re: Base HEX to ASCII Challenge</title>
      <link>https://community.qlik.com/t5/QlikView/Base-HEX-to-ASCII-Challenge/m-p/913555#M316914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see the inline load is failing to pick up the space for code 40. This would probably not be a problem when reading from a file, but here is a quick workaround:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD ID, HEX, MapSubstring('MapHexToAscii', Replace(HEX, '40', ' ')) As Decode&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2015 10:41:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Base-HEX-to-ASCII-Challenge/m-p/913555#M316914</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-08-06T10:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: Base HEX to ASCII Challenge</title>
      <link>https://community.qlik.com/t5/QlikView/Base-HEX-to-ASCII-Challenge/m-p/913556#M316915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This must be a IBM EBCDIC to ANSI character set conversion thing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QlikView is able to read files in EBCDIC code pages. So wouldn't it be easier to specify this in your LOAD-statement?&lt;/P&gt;&lt;P&gt;If it is coming from a database the ODBC-driver should be configurable to handle EBCDIC to ASCII/ANSI conversion.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2015 10:49:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Base-HEX-to-ASCII-Challenge/m-p/913556#M316915</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2015-08-06T10:49:07Z</dc:date>
    </item>
    <item>
      <title>Re: Base HEX to ASCII Challenge</title>
      <link>https://community.qlik.com/t5/QlikView/Base-HEX-to-ASCII-Challenge/m-p/913557#M316916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jonathan, it works like a charm. I forgot how useful could be the function mapsubstring.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Marcel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2015 10:59:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Base-HEX-to-ASCII-Challenge/m-p/913557#M316916</guid>
      <dc:creator>marcel_olmo</dc:creator>
      <dc:date>2015-08-06T10:59:28Z</dc:date>
    </item>
  </channel>
</rss>

