<?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: Changing file format! in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/changing-file-format/m-p/5217969#M26981</link>
    <description>As suggested, Hein deserved points for his solution.    I also gave 10 to John for the additial explanation.&lt;BR /&gt;&lt;BR /&gt;thanks guys&lt;BR /&gt;&lt;BR /&gt;Dave.</description>
    <pubDate>Mon, 11 Jan 2010 11:44:27 GMT</pubDate>
    <dc:creator>The Brit</dc:creator>
    <dc:date>2010-01-11T11:44:27Z</dc:date>
    <item>
      <title>Changing file format!</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/changing-file-format/m-p/5217961#M26973</link>
      <description>If I have a sequential text file with attributes &lt;BR /&gt;&lt;BR /&gt;File organization:  Sequential&lt;BR /&gt;Shelved state:      Online &lt;BR /&gt;Caching attribute:  Writethrough&lt;BR /&gt;File attributes:    Allocation: 73, Extend: 0, Global buffer count: 0, Version limit: 2, Contiguous best try&lt;BR /&gt;Record format:      Stream, maximum 0 bytes, longest 0 bytes&lt;BR /&gt;Record attributes:  Carriage return carriage control&lt;BR /&gt;&lt;BR /&gt;and I want it convert it to &lt;BR /&gt;&lt;BR /&gt;File organization:  Sequential&lt;BR /&gt;Shelved state:      Online &lt;BR /&gt;Caching attribute:  Writethrough&lt;BR /&gt;File attributes:    Allocation: 73, Extend: 0, Global buffer count: 0, Version limit: 2&lt;BR /&gt;Record format:      Variable length, maximum 0 bytes, longest 259 bytes&lt;BR /&gt;Record attributes:  Carriage return carriage control&lt;BR /&gt;&lt;BR /&gt;i.e. from STREAM to VARIABLE,&lt;BR /&gt;&lt;BR /&gt;What would be the appropriate DCL command??&lt;BR /&gt;&lt;BR /&gt;thanks&lt;BR /&gt;&lt;BR /&gt;Dave.</description>
      <pubDate>Fri, 08 Jan 2010 13:54:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/changing-file-format/m-p/5217961#M26973</guid>
      <dc:creator>The Brit</dc:creator>
      <dc:date>2010-01-08T13:54:16Z</dc:date>
    </item>
    <item>
      <title>Re: Changing file format!</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/changing-file-format/m-p/5217962#M26974</link>
      <description>Dave,&lt;BR /&gt;&lt;BR /&gt;traditionally,&lt;BR /&gt;make an FDL specifying the desired attributes, and &lt;BR /&gt;$ convert infile outfile/fdl=fdlfile&lt;BR /&gt;&lt;BR /&gt;Starting at some 7.3-2 patch you can specify the attributes directly on the commandline, but I do not know (and can not at the moment get) the exact incantation.&lt;BR /&gt;Probably Hein will jump in for that...&lt;BR /&gt;&lt;BR /&gt;hth&lt;BR /&gt;&lt;BR /&gt;Proost.&lt;BR /&gt;&lt;BR /&gt;Have one on me.&lt;BR /&gt;&lt;BR /&gt;jpe</description>
      <pubDate>Fri, 08 Jan 2010 14:12:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/changing-file-format/m-p/5217962#M26974</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2010-01-08T14:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: Changing file format!</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/changing-file-format/m-p/5217963#M26975</link>
      <description>Hi Jan,&lt;BR /&gt;    Yes, I also believe there is a magic incantation which will do this.    I think is is something like &lt;BR /&gt;&lt;BR /&gt;$  Set file /attrib=RFM:VAR &lt;FILENAME&gt;&lt;BR /&gt;&lt;BR /&gt;unfortunately when I tried this (on a copy) it made some strange change. i.e. when I "typed" the file, it displayed nothing, although the file-size said it was not zero-length, and the EDT editor was able to load the file into its buffer, but with record length errors.&lt;BR /&gt;&lt;BR /&gt;I too wait for Hein.&lt;BR /&gt;&lt;BR /&gt;(probably having a late breakfast)&lt;BR /&gt;&lt;BR /&gt;thanks&lt;BR /&gt;&lt;BR /&gt;Dave.&lt;/FILENAME&gt;</description>
      <pubDate>Fri, 08 Jan 2010 14:19:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/changing-file-format/m-p/5217963#M26975</guid>
      <dc:creator>The Brit</dc:creator>
      <dc:date>2010-01-08T14:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: Changing file format!</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/changing-file-format/m-p/5217964#M26976</link>
      <description>$ convert/fdl=sys$input infile outfile&lt;BR /&gt;  record&lt;BR /&gt;    carriage_control carriage_return&lt;BR /&gt;    format variable&lt;BR /&gt;^Z&lt;BR /&gt;</description>
      <pubDate>Fri, 08 Jan 2010 14:21:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/changing-file-format/m-p/5217964#M26976</guid>
      <dc:creator>Jim_McKinney</dc:creator>
      <dc:date>2010-01-08T14:21:24Z</dc:date>
    </item>
    <item>
      <title>Re: Changing file format!</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/changing-file-format/m-p/5217965#M26977</link>
      <description>&lt;BR /&gt;$Convert/FDL=NL: anything variable-length-record-file.dat&lt;BR /&gt;&lt;BR /&gt;Hein&lt;BR /&gt;</description>
      <pubDate>Fri, 08 Jan 2010 16:50:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/changing-file-format/m-p/5217965#M26977</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2010-01-08T16:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: Changing file format!</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/changing-file-format/m-p/5217966#M26978</link>
      <description>&amp;gt; $Convert/FDL=NL: anything variable-length-record-file.dat&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Slick!</description>
      <pubDate>Fri, 08 Jan 2010 17:52:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/changing-file-format/m-p/5217966#M26978</guid>
      <dc:creator>Jim_McKinney</dc:creator>
      <dc:date>2010-01-08T17:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: Changing file format!</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/changing-file-format/m-p/5217967#M26979</link>
      <description>Aaaaai&lt;BR /&gt;&lt;BR /&gt;Dave,&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;&lt;BR /&gt;$Convert/FDL=NL: anything variable-length-record-file.dat&lt;BR /&gt;&amp;lt;&amp;lt;&amp;lt;&lt;BR /&gt;&lt;BR /&gt;Please, reopen, and give Hein 10 points!&lt;BR /&gt;&lt;BR /&gt;Proost.&lt;BR /&gt;&lt;BR /&gt;Have one on me.&lt;BR /&gt;&lt;BR /&gt;jpe</description>
      <pubDate>Fri, 08 Jan 2010 21:57:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/changing-file-format/m-p/5217967#M26979</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2010-01-08T21:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: Changing file format!</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/changing-file-format/m-p/5217968#M26980</link>
      <description>Dave,&lt;BR /&gt;&lt;BR /&gt;&amp;gt;$ Set file /attrib=RFM:VAR &lt;FILENAME&gt;&lt;BR /&gt;&lt;BR /&gt;This hacks the RMS attributes switching RFM from STM to VAR. However, it does NOT change the metadata in the file. So the 2 byte record length fields at the beginning of each record, required by VAR format are not present, and the trailing CR-LF record delimiters of STM format are still present. The resulting file is unlikely to make much sense.&lt;BR /&gt;&lt;BR /&gt;The requested change requires a CONVERT which will change each record to the correct format.&lt;BR /&gt;&lt;BR /&gt;Hein's /FDL=NL: relies on the RMS default being VAR. A very neat trick for this specific question, but not for the general case of CONVERTing between formats.&lt;BR /&gt;&lt;BR /&gt;"you can specify the attributes directly on &lt;BR /&gt;the commandline"&lt;BR /&gt;&lt;BR /&gt;The /FDL qualifier now accepts either a file specification, or an FDL control string in double quotes. So, anything you did as /FDL=SYS$INPUT can now be in the command line. Just add a semicolon to the end of each line in your input stream and quote the whole string. Thus:&lt;BR /&gt;&lt;BR /&gt;$ CONVERT/FDL="record;carriage_control carriage_return;format variable" infile outfile&lt;BR /&gt;&lt;BR /&gt;RMS engineering accepted this change because it allowed CONVERT to be used in an inline PIPE sequence.&lt;BR /&gt;&lt;BR /&gt;&lt;/FILENAME&gt;</description>
      <pubDate>Sun, 10 Jan 2010 21:13:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/changing-file-format/m-p/5217968#M26980</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2010-01-10T21:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: Changing file format!</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/changing-file-format/m-p/5217969#M26981</link>
      <description>As suggested, Hein deserved points for his solution.    I also gave 10 to John for the additial explanation.&lt;BR /&gt;&lt;BR /&gt;thanks guys&lt;BR /&gt;&lt;BR /&gt;Dave.</description>
      <pubDate>Mon, 11 Jan 2010 11:44:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/changing-file-format/m-p/5217969#M26981</guid>
      <dc:creator>The Brit</dc:creator>
      <dc:date>2010-01-11T11:44:27Z</dc:date>
    </item>
  </channel>
</rss>

