<?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: ASCII to EBCDIC problems with $ebcdic. format in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/ASCII-to-EBCDIC-problems-with-ebcdic-format/m-p/102462#M28672</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greg,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't know if this will help, but it might be one piece of the puzzle.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Documentation for the BYTE function states that its results will vary on a PC, for 128-255.&amp;nbsp; It depends on the country of origin for the PC, since different countries use different schemes for 128+.&amp;nbsp; &lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 May 2012 14:57:15 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2012-05-03T14:57:15Z</dc:date>
    <item>
      <title>ASCII to EBCDIC problems with $ebcdic. format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/ASCII-to-EBCDIC-problems-with-ebcdic-format/m-p/102461#M28671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greetings all.&amp;nbsp; First let me apologize for starting another thread that is related to one I started two weeks ago or so.&amp;nbsp; That thread went way off from my original question, so I thought where it ended up warranted it's own thread.&amp;nbsp; I am having difficulty using the $ebcdic. format.&amp;nbsp; There are 33 characters that $ebcdic. either returns '00' or it incorrectly translates from ascii.&amp;nbsp; I should note that when I say 'incorrectly', I mean it is not doing what I need it to do, but I am sure it is doing what it is programmed to do.&amp;nbsp; To eliminate all possibilities of import errors from our mainframe, I started with decimals 0-255, then used formats to convert them to ascii hex and ebcdic hex.&amp;nbsp; The attached code file will show what I am needing to do.&amp;nbsp; Again, I have used an array to translate to suit my needs.&amp;nbsp; My array will translate based on ebcdic code page 37, and indeed, the 33 suspect translations are as my array translates them using code page 37.&amp;nbsp; So, I have a couple of questions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) How can I determine which translation table $ebcdic is using to translate?&amp;nbsp; Is it using a translation table?&lt;/P&gt;&lt;P&gt;2) I was able to create a translation table that is stored in sasuser.profile.&amp;nbsp; Is it possible to tell $ebcdic. to use my translation table, which is the same as ebcdic code page 37.&lt;/P&gt;&lt;P&gt;3) The code page 37 table shown at &lt;A href="http://en.wikipedia.org/wiki/EBCDIC_037"&gt;http://en.wikipedia.org/wiki/EBCDIC_037&lt;/A&gt; shows the unicode equivalents of the ebcdic code points.&amp;nbsp; I know that for ascii, decimals 0-127 represent the same characters as unicode.&amp;nbsp; But for 128-255, all bets seem to be off.&amp;nbsp; Do I need to bring unicode into the equation?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would so much appreciate any help on this issue.&amp;nbsp; Since the end of my last thread (thank you so much Tom for your help) I have been working with our mainframe folks and other SAS users here to try to get an answer, as well as read everything I could find about translation tables and formats.&amp;nbsp; I am again at a point where I am in need of some more leads to follow.&amp;nbsp; The attached code should be straight forward.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2012 14:22:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/ASCII-to-EBCDIC-problems-with-ebcdic-format/m-p/102461#M28671</guid>
      <dc:creator>gsnidow</dc:creator>
      <dc:date>2012-05-03T14:22:54Z</dc:date>
    </item>
    <item>
      <title>Re: ASCII to EBCDIC problems with $ebcdic. format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/ASCII-to-EBCDIC-problems-with-ebcdic-format/m-p/102462#M28672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greg,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't know if this will help, but it might be one piece of the puzzle.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Documentation for the BYTE function states that its results will vary on a PC, for 128-255.&amp;nbsp; It depends on the country of origin for the PC, since different countries use different schemes for 128+.&amp;nbsp; &lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2012 14:57:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/ASCII-to-EBCDIC-problems-with-ebcdic-format/m-p/102462#M28672</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2012-05-03T14:57:15Z</dc:date>
    </item>
    <item>
      <title>Re: ASCII to EBCDIC problems with $ebcdic. format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/ASCII-to-EBCDIC-problems-with-ebcdic-format/m-p/102463#M28673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Astounding, there might be something to that.&amp;nbsp; Most of the translations in question are after 128, but there are a few starting with 91.&amp;nbsp; Also, I checked the ascii hex values SAS is producing using SQL Server, and the results are the same.&amp;nbsp; But, to your point, that could be because of my machine.&amp;nbsp; I'm using a HP ProBook 6550b.&amp;nbsp; Thanks for the tip. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2012 19:34:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/ASCII-to-EBCDIC-problems-with-ebcdic-format/m-p/102463#M28673</guid>
      <dc:creator>gsnidow</dc:creator>
      <dc:date>2012-05-03T19:34:46Z</dc:date>
    </item>
  </channel>
</rss>

