<?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: Unknow characters in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/unknow-characters/m-p/3939707#M288716</link>
    <description>Attaching the file for your reference. Any help would be greatly appreciated.&lt;BR /&gt;&lt;BR /&gt;thanks,&lt;BR /&gt;hunki</description>
    <pubDate>Tue, 13 Feb 2007 17:43:27 GMT</pubDate>
    <dc:creator>Hunki</dc:creator>
    <dc:date>2007-02-13T17:43:27Z</dc:date>
    <item>
      <title>Unknow characters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unknow-characters/m-p/3939703#M288712</link>
      <description>&lt;BR /&gt;We are getting a file from mainframe for our unix box through the connect direct software which has special characters. My question is how to deal with these special characters ( ^@ ) while the file is being transfered ( at the time of transfer ) over from mainfraime to our box through connect:direct ( NDM ). The special character is not visible during "vi" but is visible while doing a "less filename"</description>
      <pubDate>Tue, 06 Feb 2007 16:41:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unknow-characters/m-p/3939703#M288712</guid>
      <dc:creator>Hunki</dc:creator>
      <dc:date>2007-02-06T16:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: Unknow characters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unknow-characters/m-p/3939704#M288713</link>
      <description>Data conversion can be very data dependent. Are you certain that these characters are not needed? If so, you can setup a trival filter using tr to delete all non-printable characters.&lt;BR /&gt;&lt;BR /&gt;tr -cd "[ -~\012]" &amp;lt; infile &amp;gt; outfile&lt;BR /&gt;&lt;BR /&gt;This will delete all characters not in the range &lt;SP&gt; through tilde and not a LF.&lt;BR /&gt;&lt;BR /&gt;If these special characters are binary data then you will have to craft a custom conversion. Perl is very good at doig selective EBCDIC to ASCII conversion and can convert one binary data format to another.&lt;/SP&gt;</description>
      <pubDate>Tue, 06 Feb 2007 16:58:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unknow-characters/m-p/3939704#M288713</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2007-02-06T16:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: Unknow characters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unknow-characters/m-p/3939705#M288714</link>
      <description>^@ id most likely a representation of ascii NUL.&lt;BR /&gt;&lt;BR /&gt;Is the data supposed to be readoable ascii, or perhaps ebcdic or binary/raw data&lt;BR /&gt;&lt;BR /&gt;Control-&lt;ANYTHING&gt; being 64 less than the character. See for example: &lt;A href="http://www.asciitable.com/" target="_blank"&gt;http://www.asciitable.com/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The best way to analyze the situation is to use 'od' or 'xd' in some flavor ( -c ).&lt;BR /&gt;&lt;BR /&gt;It the data is supposed to be text already, then you may need to write a little post-transfer filter (perl? tr -d \0000 ?).&lt;BR /&gt;&lt;BR /&gt;For better help please consider a reply with &lt;BR /&gt;an .txt attachment with output from &lt;BR /&gt;head -10 &lt;FILE&gt; | xd - c &amp;gt; xd.txt&lt;BR /&gt;&lt;BR /&gt;hth,&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;&lt;/FILE&gt;&lt;/ANYTHING&gt;</description>
      <pubDate>Tue, 06 Feb 2007 17:02:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unknow-characters/m-p/3939705#M288714</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2007-02-06T17:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: Unknow characters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unknow-characters/m-p/3939706#M288715</link>
      <description>I'm curious. Was this resolved? &lt;BR /&gt;What was the outcome?&lt;BR /&gt;Regards,&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
      <pubDate>Thu, 08 Feb 2007 09:35:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unknow-characters/m-p/3939706#M288715</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2007-02-08T09:35:28Z</dc:date>
    </item>
    <item>
      <title>Re: Unknow characters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unknow-characters/m-p/3939707#M288716</link>
      <description>Attaching the file for your reference. Any help would be greatly appreciated.&lt;BR /&gt;&lt;BR /&gt;thanks,&lt;BR /&gt;hunki</description>
      <pubDate>Tue, 13 Feb 2007 17:43:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unknow-characters/m-p/3939707#M288716</guid>
      <dc:creator>Hunki</dc:creator>
      <dc:date>2007-02-13T17:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: Unknow characters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unknow-characters/m-p/3939708#M288717</link>
      <description>There are two types of files here ...file 1 is binary/date file and file 2 is ascii text file.</description>
      <pubDate>Tue, 13 Feb 2007 17:45:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unknow-characters/m-p/3939708#M288717</guid>
      <dc:creator>Hunki</dc:creator>
      <dc:date>2007-02-13T17:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: Unknow characters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unknow-characters/m-p/3939709#M288718</link>
      <description>Need to find out on how to translate those "null" characters into spaces either during the Connect:Direct transmission or upon receipt of the file.</description>
      <pubDate>Tue, 13 Feb 2007 17:47:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unknow-characters/m-p/3939709#M288718</guid>
      <dc:creator>Hunki</dc:creator>
      <dc:date>2007-02-13T17:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: Unknow characters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unknow-characters/m-p/3939710#M288719</link>
      <description>Well, you did not pie through 'xd' as requested, so now the .txt file, or my notepad may have munged funny characters.&lt;BR /&gt;&lt;BR /&gt;I do see the first head command being followed by and empty line (edit error?) and then a 'funny' character with valye 0xE2 (226 decimal). I was guessing it might be a line length, but that appears to be 101 (decimal)&lt;BR /&gt;&lt;BR /&gt;If you want to fix whatever the first char is to become a space, then you could probaly use (untested):&lt;BR /&gt;&lt;BR /&gt;perl -pe "s/^./ /" &lt;INPUT /&gt; &amp;gt; &lt;OUTPUT&gt;&lt;BR /&gt;&lt;BR /&gt;This just tells perl to loop through &lt;INPUT /&gt;, substitute the first char in a line with a space, and print onto &lt;OUTPUT&gt;&lt;BR /&gt;&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/OUTPUT&gt;&lt;/OUTPUT&gt;</description>
      <pubDate>Tue, 13 Feb 2007 18:34:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unknow-characters/m-p/3939710#M288719</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2007-02-13T18:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: Unknow characters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unknow-characters/m-p/3939711#M288720</link>
      <description>The transferred data looks like it contains JCL codes and is likely a very specialized file on the mainframe. Mainframes have hundreds of file formats and in fact, a plain old ASCII file is quite unusual on a mainframe. To transfer a useful file from any non-Unix computer will require discussions with the mainframe system administrators. Translating the one character isn't going to be the end of your work. &lt;BR /&gt; &lt;BR /&gt;I would display the file in hex+ASCII so you can see everything else that needs fixing:&lt;BR /&gt; &lt;BR /&gt;xd -xc mainframe.file | more&lt;BR /&gt; &lt;BR /&gt;Note that if you are transferring the file first from mainframe to a PC and then PC to HP-UX, there other precautions you need to take to preserve the data.</description>
      <pubDate>Tue, 13 Feb 2007 19:18:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unknow-characters/m-p/3939711#M288720</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2007-02-13T19:18:41Z</dc:date>
    </item>
  </channel>
</rss>

