<?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: CONVERT Utility in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/convert-utility/m-p/3579669#M6451</link>
    <description>Dom,&lt;BR /&gt;&lt;BR /&gt;If you need this, for converting files you mentioned in yours previous thread&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums2.itrc.hp.com/service/forums/questionanswer.do?threadId=938757" target="_blank"&gt;http://forums2.itrc.hp.com/service/forums/questionanswer.do?threadId=938757&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;leave the file as stream and convert it with a fdl which has fixed records:&lt;BR /&gt;&lt;BR /&gt;$ CONVERT/FDL=SYS$INPUT &lt;STREAM&gt; &lt;FIXED&gt;&lt;BR /&gt;RECORD&lt;BR /&gt;FORMAT FIXED&lt;BR /&gt;SIZE 50&lt;BR /&gt;^Z&lt;BR /&gt;&lt;BR /&gt;Bojan&lt;/FIXED&gt;&lt;/STREAM&gt;</description>
    <pubDate>Mon, 11 Jul 2005 13:06:59 GMT</pubDate>
    <dc:creator>Bojan Nemec</dc:creator>
    <dc:date>2005-07-11T13:06:59Z</dc:date>
    <item>
      <title>CONVERT Utility</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/convert-utility/m-p/3579667#M6449</link>
      <description>Sometimes a need to delete the last two bytes of each record in a (fixed length record) file.  I thought the best way was  to do a CONVERT &lt;INPUT /&gt; &lt;OUTPUT&gt; /fdl=&amp;lt;&amp;gt; /Truncate.&lt;BR /&gt;&lt;BR /&gt;But it seems like the data I get in &lt;OUTPUT&gt; is all wrong.  Can someone tell me how truncate works in the Convert utility?&lt;BR /&gt;&lt;BR /&gt;Dom&lt;/OUTPUT&gt;&lt;/OUTPUT&gt;</description>
      <pubDate>Mon, 11 Jul 2005 11:52:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/convert-utility/m-p/3579667#M6449</guid>
      <dc:creator>Dominic Olivastro</dc:creator>
      <dc:date>2005-07-11T11:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: CONVERT Utility</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/convert-utility/m-p/3579668#M6450</link>
      <description>DCL help suggests that this should work.&lt;BR /&gt;And I tried it. Created a small datafile with 12 char long records&lt;BR /&gt;&lt;BR /&gt;$ ty aaa.2&lt;BR /&gt;123456789012&lt;BR /&gt;123456789012&lt;BR /&gt;123456789012&lt;BR /&gt;123456789012&lt;BR /&gt;123456789012&lt;BR /&gt;123456789012&lt;BR /&gt;123456789012&lt;BR /&gt;123456789012&lt;BR /&gt;&lt;BR /&gt;and converted it using &lt;BR /&gt;&lt;BR /&gt;$ convert/fdl=fix aaa.2 aaa.3/stat/trunc&lt;BR /&gt;&lt;BR /&gt; CONVERT Statistics&lt;BR /&gt;Number of Files Processed:         1&lt;BR /&gt;Total Records Processed:           8    Buffered I/O Count:           14&lt;BR /&gt;Total Exception Records:           0    Direct I/O Count:             47&lt;BR /&gt;Total Valid Records:               8    Page Faults:                  28&lt;BR /&gt;Elapsed Time:          0 00:00:01.67    CPU Time:          0 00:00:00.03&lt;BR /&gt;&lt;BR /&gt;where fix.fdl contained&lt;BR /&gt;&lt;BR /&gt;IDENT   FDL_VERSION 01  "11-JUL-2005 22:07:02  OpenVMS FDL Editor"&lt;BR /&gt;&lt;BR /&gt;SYSTEM&lt;BR /&gt;        SOURCE                  "OpenVMS"&lt;BR /&gt;&lt;BR /&gt;FILE&lt;BR /&gt;        ALLOCATION              0&lt;BR /&gt;        BEST_TRY_CONTIGUOUS     yes&lt;BR /&gt;        EXTENSION               0&lt;BR /&gt;        ORGANIZATION            sequential&lt;BR /&gt;&lt;BR /&gt;RECORD&lt;BR /&gt;        BLOCK_SPAN              yes&lt;BR /&gt;        CARRIAGE_CONTROL        carriage_return&lt;BR /&gt;        FORMAT                  fixed&lt;BR /&gt;        SIZE                    10&lt;BR /&gt;&lt;BR /&gt;and result is&lt;BR /&gt;&lt;BR /&gt;$ ty aaa.3&lt;BR /&gt;1234567890&lt;BR /&gt;1234567890&lt;BR /&gt;1234567890&lt;BR /&gt;1234567890&lt;BR /&gt;1234567890&lt;BR /&gt;1234567890&lt;BR /&gt;1234567890&lt;BR /&gt;1234567890&lt;BR /&gt;&lt;BR /&gt;this was done on OpenVMS V8.2 (Alphaserver 1000 5/400)&lt;BR /&gt;&lt;BR /&gt;so, what hardware, what operating system version, are patches uptodate, what does "all wrong" actually mean?&lt;BR /&gt;&lt;BR /&gt;_veli&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 11 Jul 2005 12:13:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/convert-utility/m-p/3579668#M6450</guid>
      <dc:creator>Veli Körkkö</dc:creator>
      <dc:date>2005-07-11T12:13:06Z</dc:date>
    </item>
    <item>
      <title>Re: CONVERT Utility</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/convert-utility/m-p/3579669#M6451</link>
      <description>Dom,&lt;BR /&gt;&lt;BR /&gt;If you need this, for converting files you mentioned in yours previous thread&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums2.itrc.hp.com/service/forums/questionanswer.do?threadId=938757" target="_blank"&gt;http://forums2.itrc.hp.com/service/forums/questionanswer.do?threadId=938757&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;leave the file as stream and convert it with a fdl which has fixed records:&lt;BR /&gt;&lt;BR /&gt;$ CONVERT/FDL=SYS$INPUT &lt;STREAM&gt; &lt;FIXED&gt;&lt;BR /&gt;RECORD&lt;BR /&gt;FORMAT FIXED&lt;BR /&gt;SIZE 50&lt;BR /&gt;^Z&lt;BR /&gt;&lt;BR /&gt;Bojan&lt;/FIXED&gt;&lt;/STREAM&gt;</description>
      <pubDate>Mon, 11 Jul 2005 13:06:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/convert-utility/m-p/3579669#M6451</guid>
      <dc:creator>Bojan Nemec</dc:creator>
      <dc:date>2005-07-11T13:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: CONVERT Utility</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/convert-utility/m-p/3579670#M6452</link>
      <description>check out my reply to &lt;A href="http://forums2.itrc.hp.com/service/forums/questionanswer.do?threadId=938757" target="_blank"&gt;http://forums2.itrc.hp.com/service/forums/questionanswer.do?threadId=938757&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;That /TRUN is only needed if you alterred the file attributes.&lt;BR /&gt;&lt;BR /&gt;The truncate works by reading the input file with simple sequential $GET calls and only $PUTting the maximum record size number of bytes into the output file. It is only in effect for output files with an MRS attribute (which is implied by RFM=FIX).&lt;BR /&gt;For fixed length records it is mostly used in conjuction with /PAD&lt;BR /&gt;&lt;BR /&gt;hth,&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
      <pubDate>Tue, 12 Jul 2005 05:38:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/convert-utility/m-p/3579670#M6452</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2005-07-12T05:38:17Z</dc:date>
    </item>
  </channel>
</rss>

