<?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: dd in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/dd/m-p/2777754#M942879</link>
    <description>That last od output didn't look so good, here is an xd with the hex values.&lt;BR /&gt;&lt;BR /&gt;0000000  5468  6973  2020  616e  6420  2020  7468  6174&lt;BR /&gt;         T  h  i  s        a  n  d           t  h  a  t&lt;BR /&gt;0000010  2020  616e  6420  2020  7468  6520  2020  6f74&lt;BR /&gt;               a  n  d           t  h  e           o  t&lt;BR /&gt;0000020  6865  7220  7468  696e  6720&lt;BR /&gt;         h  e  r     t  h  i  n  g&lt;BR /&gt;000002a&lt;BR /&gt;&lt;BR /&gt;-- Rod Hills</description>
    <pubDate>Thu, 01 Aug 2002 15:24:29 GMT</pubDate>
    <dc:creator>Rodney Hills</dc:creator>
    <dc:date>2002-08-01T15:24:29Z</dc:date>
    <item>
      <title>dd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dd/m-p/2777749#M942874</link>
      <description>I am trying to use dd to cut a tape for the IRS.  They need block size of 6900 and record length of 275.  &lt;BR /&gt;&lt;BR /&gt;Using dd if=xxx of=xxx cbs=512 conv=unblock.&lt;BR /&gt;&lt;BR /&gt;Each record comes out nicely on its own row but surpass the length of 275.  &lt;BR /&gt;&lt;BR /&gt;How do I chop off the rest of the record from 276 to the end of that record?</description>
      <pubDate>Thu, 01 Aug 2002 14:53:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dd/m-p/2777749#M942874</guid>
      <dc:creator>Steve_3</dc:creator>
      <dc:date>2002-08-01T14:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: dd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dd/m-p/2777750#M942875</link>
      <description>If you want fixed length records, then-&lt;BR /&gt;&lt;BR /&gt;dd if=xxx of=xxx obs=6900 cbs=275 conv=block&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;-- Rod Hills&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 01 Aug 2002 15:00:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dd/m-p/2777750#M942875</guid>
      <dc:creator>Rodney Hills</dc:creator>
      <dc:date>2002-08-01T15:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: dd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dd/m-p/2777751#M942876</link>
      <description>I'm working from memory here but I am almost positive that they will except either a 275 or a 276 byte record. The preferred blocking factor is 25. There is no LF in these records.&lt;BR /&gt;&lt;BR /&gt;In your case, I would do this:&lt;BR /&gt;&lt;BR /&gt;dd if=xxx ibs=275 obs=6875 of=/dev/rmt/yyy&lt;BR /&gt;</description>
      <pubDate>Thu, 01 Aug 2002 15:11:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dd/m-p/2777751#M942876</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2002-08-01T15:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: dd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dd/m-p/2777752#M942877</link>
      <description>The result of that only return 1 record.&lt;BR /&gt;&lt;BR /&gt;thanks,&lt;BR /&gt;steve</description>
      <pubDate>Thu, 01 Aug 2002 15:15:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dd/m-p/2777752#M942877</guid>
      <dc:creator>Steve_3</dc:creator>
      <dc:date>2002-08-01T15:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: dd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dd/m-p/2777753#M942878</link>
      <description>I did the following and it did the right thing-&lt;BR /&gt;&lt;BR /&gt;$ cat &amp;gt;that&lt;BR /&gt;This&lt;BR /&gt;and&lt;BR /&gt;that&lt;BR /&gt;and&lt;BR /&gt;the&lt;BR /&gt;other&lt;BR /&gt;thing&lt;BR /&gt;^D&lt;BR /&gt;$ dd if=that of=this obs=128 cbs=6 conv=block&lt;BR /&gt;0+1 records in&lt;BR /&gt;0+1 records out&lt;BR /&gt;pegasus homeroot # od -c this&lt;BR /&gt;0000000   T   h   i   s           a   n   d               t   h   a   t&lt;BR /&gt;0000020           a   n   d               t   h   e               o   t&lt;BR /&gt;0000040   h   e   r       t   h   i   n   g&lt;BR /&gt;&lt;BR /&gt;Notice each record is fixed length at 6 bytes.&lt;BR /&gt;&lt;BR /&gt;Is your input data a unix text file or some cobol generated output file?&lt;BR /&gt;&lt;BR /&gt;-- Rod Hills</description>
      <pubDate>Thu, 01 Aug 2002 15:21:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dd/m-p/2777753#M942878</guid>
      <dc:creator>Rodney Hills</dc:creator>
      <dc:date>2002-08-01T15:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: dd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dd/m-p/2777754#M942879</link>
      <description>That last od output didn't look so good, here is an xd with the hex values.&lt;BR /&gt;&lt;BR /&gt;0000000  5468  6973  2020  616e  6420  2020  7468  6174&lt;BR /&gt;         T  h  i  s        a  n  d           t  h  a  t&lt;BR /&gt;0000010  2020  616e  6420  2020  7468  6520  2020  6f74&lt;BR /&gt;               a  n  d           t  h  e           o  t&lt;BR /&gt;0000020  6865  7220  7468  696e  6720&lt;BR /&gt;         h  e  r     t  h  i  n  g&lt;BR /&gt;000002a&lt;BR /&gt;&lt;BR /&gt;-- Rod Hills</description>
      <pubDate>Thu, 01 Aug 2002 15:24:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dd/m-p/2777754#M942879</guid>
      <dc:creator>Rodney Hills</dc:creator>
      <dc:date>2002-08-01T15:24:29Z</dc:date>
    </item>
    <item>
      <title>Re: dd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dd/m-p/2777755#M942880</link>
      <description>It is a text file generated from Oracle.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;steve</description>
      <pubDate>Thu, 01 Aug 2002 15:30:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dd/m-p/2777755#M942880</guid>
      <dc:creator>Steve_3</dc:creator>
      <dc:date>2002-08-01T15:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: dd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dd/m-p/2777756#M942881</link>
      <description>The 1 record count is ok, since it is going to a fixed length record format. Did you run a dump on the resultant tape to see if it is formatted correctly?&lt;BR /&gt;&lt;BR /&gt;If this tape is for the IRS, and needs to be fixed length records, then do you know if the data needs to be EBCDIC?&lt;BR /&gt;&lt;BR /&gt;The text file generated by oracle, is it a true variable length ascii file seperated with ascii \012?&lt;BR /&gt;&lt;BR /&gt;Does this need to be fixed length records, or just records with a max size of 275?&lt;BR /&gt;&lt;BR /&gt;dd can handle conversion between different formats, so it's just a matter of determining the correct blocking factor, record type, and character code.&lt;BR /&gt;&lt;BR /&gt;-- Rod Hills</description>
      <pubDate>Thu, 01 Aug 2002 15:49:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dd/m-p/2777756#M942881</guid>
      <dc:creator>Rodney Hills</dc:creator>
      <dc:date>2002-08-01T15:49:22Z</dc:date>
    </item>
  </channel>
</rss>

