<?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: DCL Query - Removing Linefeed Character in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/dcl-query-removing-linefeed-character/m-p/4869525#M31540</link>
    <description>Martin,&lt;BR /&gt;To be a bit clearer, this is a file that is arriving from an external source by e-mail.&lt;BR /&gt;I need to extract the file and prepare it for use in an existing utility, hence the need to replicate the existing format.&lt;BR /&gt;&lt;BR /&gt;I might need to get the sending side to alter how it is sent. But I was hoping to avoid that.</description>
    <pubDate>Mon, 08 Nov 2004 19:09:15 GMT</pubDate>
    <dc:creator>Rob Buxton</dc:creator>
    <dc:date>2004-11-08T19:09:15Z</dc:date>
    <item>
      <title>DCL Query - Removing Linefeed Character</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dcl-query-removing-linefeed-character/m-p/4869523#M31538</link>
      <description>Hi All,&lt;BR /&gt;It's been a while since I've been over on the VMS side of things!&lt;BR /&gt;I'm trying to script some DCL to replicate what is currently being done via a Kermit File transfer but extracting from VMS mail instead.&lt;BR /&gt;&lt;BR /&gt;The existing files comes across as Stream_LF.&lt;BR /&gt;I have been able to extract the message, for some reason it seems to have a "=" at the end of each record and is set to 72 characters.&lt;BR /&gt;I have to do a bit of dodging around to extract the e-mail but I do obtain a file. I then try and write this file to a suitable output file. The trouble is the file I'm writing out using DCL seems to contain a &lt;LF&gt; after the Write of each Record.&lt;BR /&gt;I create the empty file using an FDL based on the original and Open /Read / Write to preserve the file. But I cannot replicate the original file that does not have the &lt;LF&gt; Characters in the file.&lt;BR /&gt;&lt;BR /&gt;OpenVMS 7.2 (or 7.2-2 on Alpha)&lt;BR /&gt;&lt;BR /&gt;Any hints as to how you write a file out in DCL but not have a &lt;LF&gt; at the end of each record?&lt;BR /&gt;I've tried the /Symbol qualifier but that made no difference.&lt;BR /&gt;&lt;BR /&gt;TIA&lt;BR /&gt;&lt;BR /&gt;Rob.&lt;/LF&gt;&lt;/LF&gt;&lt;/LF&gt;</description>
      <pubDate>Mon, 08 Nov 2004 18:10:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dcl-query-removing-linefeed-character/m-p/4869523#M31538</guid>
      <dc:creator>Rob Buxton</dc:creator>
      <dc:date>2004-11-08T18:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: DCL Query - Removing Linefeed Character</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dcl-query-removing-linefeed-character/m-p/4869524#M31539</link>
      <description>Hello Rob,&lt;BR /&gt;&lt;BR /&gt;once it is in Mail it is not Stream_LF on the &lt;BR /&gt;VMS side of things. If file attributes are important wrap the file into something that preserves file attributes (like a zip archive with "-V"), pack that up (e.g. with uuencode or mpack) and transfer the packed format. &lt;BR /&gt;&lt;BR /&gt;Greetings, Martin</description>
      <pubDate>Mon, 08 Nov 2004 18:57:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dcl-query-removing-linefeed-character/m-p/4869524#M31539</guid>
      <dc:creator>Martin P.J. Zinser</dc:creator>
      <dc:date>2004-11-08T18:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: DCL Query - Removing Linefeed Character</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dcl-query-removing-linefeed-character/m-p/4869525#M31540</link>
      <description>Martin,&lt;BR /&gt;To be a bit clearer, this is a file that is arriving from an external source by e-mail.&lt;BR /&gt;I need to extract the file and prepare it for use in an existing utility, hence the need to replicate the existing format.&lt;BR /&gt;&lt;BR /&gt;I might need to get the sending side to alter how it is sent. But I was hoping to avoid that.</description>
      <pubDate>Mon, 08 Nov 2004 19:09:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dcl-query-removing-linefeed-character/m-p/4869525#M31540</guid>
      <dc:creator>Rob Buxton</dc:creator>
      <dc:date>2004-11-08T19:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: DCL Query - Removing Linefeed Character</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dcl-query-removing-linefeed-character/m-p/4869526#M31541</link>
      <description>Hi Rob,&lt;BR /&gt;&lt;BR /&gt;  This might be easier to handle as a service case. Please email me your access number and I'll log one for you.</description>
      <pubDate>Mon, 08 Nov 2004 22:10:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dcl-query-removing-linefeed-character/m-p/4869526#M31541</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2004-11-08T22:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: DCL Query - Removing Linefeed Character</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dcl-query-removing-linefeed-character/m-p/4869527#M31542</link>
      <description>Rob,&lt;BR /&gt;&lt;BR /&gt;one thing you might try before doing any re-workings is to tell VMS that this IS a stream_LF file:&lt;BR /&gt;$ set &lt;FILESPEC&gt; /attrib=rfm:stmlf&lt;BR /&gt;&lt;BR /&gt;If it is a true stream_lf file, you're home!&lt;BR /&gt;Any program using RMS will handle it correctly.&lt;BR /&gt;&lt;BR /&gt;But, if you DO have to manipulate the records in DCL:&lt;BR /&gt;&lt;BR /&gt;$ open/read ifi &lt;INFILE&gt;&lt;BR /&gt;$ open/write ofi &lt;OUTFILE&gt;&lt;/OUTFILE&gt;$ lf[0,8]=10&lt;BR /&gt;$loop:&lt;BR /&gt;$ read ifi rec/end=done&lt;BR /&gt;$ rec = rec - lf - lf ! twice (or more) if not sure of only one lf&lt;BR /&gt;$ write ofi rec&lt;BR /&gt;$ goto loop&lt;BR /&gt;$done:&lt;BR /&gt;$ close ifi&lt;BR /&gt;$ close ofi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;hth&lt;BR /&gt;&lt;BR /&gt;Cheers.&lt;BR /&gt;&lt;BR /&gt;Have one on me.&lt;BR /&gt;&lt;BR /&gt;Jan&lt;/INFILE&gt;&lt;/FILESPEC&gt;</description>
      <pubDate>Tue, 09 Nov 2004 01:31:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dcl-query-removing-linefeed-character/m-p/4869527#M31542</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2004-11-09T01:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: DCL Query - Removing Linefeed Character</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dcl-query-removing-linefeed-character/m-p/4869528#M31543</link>
      <description>The reason for the line breaks at column 72 and the "=" at the end is called 'Quoted-Printable'.&lt;BR /&gt;&lt;BR /&gt;See:&lt;BR /&gt;&lt;A href="http://rfc.sunsite.dk/rfc/rfc2045.html" target="_blank"&gt;http://rfc.sunsite.dk/rfc/rfc2045.html&lt;/A&gt;&lt;BR /&gt;Section: 6.7. Quoted-Printable Content-Transfer-Encoding</description>
      <pubDate>Tue, 09 Nov 2004 01:45:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dcl-query-removing-linefeed-character/m-p/4869528#M31543</guid>
      <dc:creator>Uwe Zessin</dc:creator>
      <dc:date>2004-11-09T01:45:38Z</dc:date>
    </item>
    <item>
      <title>Re: DCL Query - Removing Linefeed Character</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dcl-query-removing-linefeed-character/m-p/4869529#M31544</link>
      <description>Rob,&lt;BR /&gt;&lt;BR /&gt;just an aside:&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;&lt;BR /&gt;I have been able to extract the message, for some reason it seems to have a "=" at the end of each record and is set to 72 characters.&lt;BR /&gt;&amp;lt;&amp;lt;&amp;lt;&lt;BR /&gt;&lt;BR /&gt;This looks suspiciously like the contents of a quoted-printable encoded MIME mail.&lt;BR /&gt;&lt;BR /&gt;There, unprintable characters get encoded by "=&lt;TWO hex-digit="" iso-8859-1="" code=""&gt;" and lines longer than 72 characters get broken up with "=&lt;NEWLINE&gt;" as the separator.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;  Martin&lt;/NEWLINE&gt;&lt;/TWO&gt;</description>
      <pubDate>Tue, 09 Nov 2004 01:46:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dcl-query-removing-linefeed-character/m-p/4869529#M31544</guid>
      <dc:creator>Martin Vorlaender</dc:creator>
      <dc:date>2004-11-09T01:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: DCL Query - Removing Linefeed Character</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dcl-query-removing-linefeed-character/m-p/4869530#M31545</link>
      <description>Rob,&lt;BR /&gt;&lt;BR /&gt;welcome back to OpenVMS ;-) If you've not been there for a while, you may not be aware of the MIME utility, which is able to read (and extract attachments from) MIME formatted mails.&lt;BR /&gt;&lt;BR /&gt;You sure remember HELP, so just try $ HELP MIME&lt;BR /&gt;&lt;BR /&gt;If the file you're interested in, would come as an attached MIME-encoded document, you could easily extract it from VMSmail:&lt;BR /&gt;&lt;BR /&gt;$ MAIL&lt;BR /&gt;MAIL&amp;gt; EXTRACT/NOHEADER x.x&lt;BR /&gt;MAIL&amp;gt; EXIT&lt;BR /&gt;$ MIME x.x&lt;BR /&gt;MIME&amp;gt; LIST&lt;BR /&gt;MIME&amp;gt; EXTRACT/ATTACH=1&lt;BR /&gt;MIME&amp;gt; EXIT&lt;BR /&gt;&lt;BR /&gt;Volker.</description>
      <pubDate>Tue, 09 Nov 2004 02:11:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dcl-query-removing-linefeed-character/m-p/4869530#M31545</guid>
      <dc:creator>Volker Halle</dc:creator>
      <dc:date>2004-11-09T02:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: DCL Query - Removing Linefeed Character</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dcl-query-removing-linefeed-character/m-p/4869531#M31546</link>
      <description>&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; Any hints as to how you write a file out in DCL but not have a &lt;LF&gt; at the end of each record?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Instead of $OPEN/WRITE file name.ext&lt;BR /&gt;&lt;BR /&gt;use:&lt;BR /&gt;&lt;BR /&gt;$CREA name.ext&lt;BR /&gt;or &lt;BR /&gt;$CREA/FDL=some.fdl name.ext&lt;BR /&gt;&lt;BR /&gt;then&lt;BR /&gt;&lt;BR /&gt;$OPEN/APPEN file name.ext.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If the mime / rfc advice does not sort you out, and you end up with a file that needs post processing, when we can help. But to help us help you please attach a sample output and input in a text or .doc file.&lt;BR /&gt;&lt;BR /&gt;fwiw,&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;/LF&gt;</description>
      <pubDate>Tue, 09 Nov 2004 02:14:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dcl-query-removing-linefeed-character/m-p/4869531#M31546</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2004-11-09T02:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: DCL Query - Removing Linefeed Character</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dcl-query-removing-linefeed-character/m-p/4869532#M31547</link>
      <description>Rob,&lt;BR /&gt;&lt;BR /&gt;It seams that you receive a mail in the so called "quoted-printable" content transfer encoding. This seams because of the 72 characters long records (RFC says less than 76) and the so called soft line break (an "=" at the end of line). Please see th RFC for more informations:&lt;BR /&gt;&lt;A href="http://www.faqs.org/rfcs/rfc2045.html" target="_blank"&gt;http://www.faqs.org/rfcs/rfc2045.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Now, to properly convert this file you must write (or search) a program which will do the work. It is possible to write it in DCL.&lt;BR /&gt;&lt;BR /&gt;Abbout the ending &lt;LF&gt;, you shold check the file using dir/full and dump. Maybe it will be easier to write a normal VMS sequential file and then convert it to stream_LF (if the file will not be used on VMS).&lt;BR /&gt;&lt;BR /&gt;Bojan&lt;/LF&gt;</description>
      <pubDate>Tue, 09 Nov 2004 02:55:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dcl-query-removing-linefeed-character/m-p/4869532#M31547</guid>
      <dc:creator>Bojan Nemec</dc:creator>
      <dc:date>2004-11-09T02:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: DCL Query - Removing Linefeed Character</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dcl-query-removing-linefeed-character/m-p/4869533#M31548</link>
      <description>I wrote the attached DCL procedure to fix up files with quoted-printable content. Perhaps it will help in your case.</description>
      <pubDate>Tue, 09 Nov 2004 12:02:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dcl-query-removing-linefeed-character/m-p/4869533#M31548</guid>
      <dc:creator>Keith Parris</dc:creator>
      <dc:date>2004-11-09T12:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: DCL Query - Removing Linefeed Character</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dcl-query-removing-linefeed-character/m-p/4869534#M31549</link>
      <description>Isn't Martin Z supposed to reply at this point with a version in perl :-)</description>
      <pubDate>Tue, 09 Nov 2004 12:25:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dcl-query-removing-linefeed-character/m-p/4869534#M31549</guid>
      <dc:creator>Ian Miller.</dc:creator>
      <dc:date>2004-11-09T12:25:49Z</dc:date>
    </item>
    <item>
      <title>Re: DCL Query - Removing Linefeed Character</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dcl-query-removing-linefeed-character/m-p/4869535#M31550</link>
      <description>Now I remember what this community is like! I go away for an afternoon, come back the next day to a mass of information!&lt;BR /&gt;&lt;BR /&gt;Points to those who spotted the Mime connection. I missed that and that's the area that seems to address the requirement. A bit more work to go, but it seems to do exactly what I want.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 09 Nov 2004 15:27:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dcl-query-removing-linefeed-character/m-p/4869535#M31550</guid>
      <dc:creator>Rob Buxton</dc:creator>
      <dc:date>2004-11-09T15:27:56Z</dc:date>
    </item>
    <item>
      <title>Re: DCL Query - Removing Linefeed Character</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dcl-query-removing-linefeed-character/m-p/4869536#M31551</link>
      <description>I did think about perl, but nah... DCL it is!</description>
      <pubDate>Tue, 09 Nov 2004 15:29:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dcl-query-removing-linefeed-character/m-p/4869536#M31551</guid>
      <dc:creator>Rob Buxton</dc:creator>
      <dc:date>2004-11-09T15:29:14Z</dc:date>
    </item>
  </channel>
</rss>

