<?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: Problem: Open Variable-length record format as streamlf in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/problem-open-variable-length-record-format-as-streamlf/m-p/3965955#M35699</link>
    <description>Some explanantion of how the files were created and the reason of the question:&lt;BR /&gt;&lt;BR /&gt; I'm trying to use ClamAV ported by Alexey to perform an automatic virus-scan on all my incoming E-mails. To intercept the E-mail contents I use the package DELIVER (from Hunter's site???). This package written in Pascal give the file with a variable record format.&lt;BR /&gt;&lt;BR /&gt;Than I use ClamAV to check the file, but no virusses are detected ever. However if you change the file format (set file/attr=rfm:stmlf) ClamAV suddenly detects the "correct" virus (as discovered by Alexey last night)&lt;BR /&gt;&lt;BR /&gt;            Jouk</description>
    <pubDate>Thu, 22 Mar 2007 09:20:52 GMT</pubDate>
    <dc:creator>Jansen_8</dc:creator>
    <dc:date>2007-03-22T09:20:52Z</dc:date>
    <item>
      <title>Problem: Open Variable-length record format as streamlf</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/problem-open-variable-length-record-format-as-streamlf/m-p/3965949#M35693</link>
      <description>Hello!&lt;BR /&gt;I wish to Open Variable-length record format as streamlf format file.&lt;BR /&gt;&lt;BR /&gt;open (file,mode,0,"rfm=stmlf")&lt;BR /&gt; &lt;BR /&gt;cant do it for me.&lt;BR /&gt;&lt;BR /&gt;What I'm doing wrong?</description>
      <pubDate>Wed, 21 Mar 2007 07:30:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/problem-open-variable-length-record-format-as-streamlf/m-p/3965949#M35693</guid>
      <dc:creator>Alexey Chupahin</dc:creator>
      <dc:date>2007-03-21T07:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: Problem: Open Variable-length record format as streamlf</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/problem-open-variable-length-record-format-as-streamlf/m-p/3965950#M35694</link>
      <description>I find a solution&lt;BR /&gt;I forget "ctx=stm"&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 21 Mar 2007 08:02:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/problem-open-variable-length-record-format-as-streamlf/m-p/3965950#M35694</guid>
      <dc:creator>Alexey Chupahin</dc:creator>
      <dc:date>2007-03-21T08:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: Problem: Open Variable-length record format as streamlf</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/problem-open-variable-length-record-format-as-streamlf/m-p/3965951#M35695</link>
      <description>Alexey,&lt;BR /&gt;&lt;BR /&gt;  Simple answer is "you can't do that". If the file is variable length, that's the end of it. Just open it, and RMS will interpret the record format for you, returning records in a manner that makes sense in whatever programming language you're using.&lt;BR /&gt;&lt;BR /&gt;  What are you really trying to achieve?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 21 Mar 2007 16:45:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/problem-open-variable-length-record-format-as-streamlf/m-p/3965951#M35695</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2007-03-21T16:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: Problem: Open Variable-length record format as streamlf</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/problem-open-variable-length-record-format-as-streamlf/m-p/3965952#M35696</link>
      <description>Glad to read you found a solution.&lt;BR /&gt;Whether a file is variable-length or stream-xxxis a permanent attribute. As such the 'rfm=stmlf' is only a CREATE time option. As yo probably know, you  can verify an existing file with DIR/FULL or F$FILE(file,"RFM").&lt;BR /&gt;You can change the RFM through CONVERT&lt;BR /&gt;(VMS 8.3: CONVER/FDL="RECORD; FORMAT STREAM_LF" var stm&lt;BR /&gt;Mostly the RFM _should_ be transparent to the application though!&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 21 Mar 2007 17:15:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/problem-open-variable-length-record-format-as-streamlf/m-p/3965952#M35696</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2007-03-21T17:15:01Z</dc:date>
    </item>
    <item>
      <title>Re: Problem: Open Variable-length record format as streamlf</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/problem-open-variable-length-record-format-as-streamlf/m-p/3965953#M35697</link>
      <description>Thank you all for answers,&lt;BR /&gt;&lt;BR /&gt;In Clamav antivirus porting process, I find a problem viruses in var-record format html files cannot be detected. I just find that a &lt;BR /&gt;read() function looks like&lt;BR /&gt;i=read(fd, *buffer, 256);&lt;BR /&gt;reads only 30 symbols instead of 256.&lt;BR /&gt;If I change file attributest to&lt;BR /&gt;SET FILE/ATTR=(RFM:STMLF)&lt;BR /&gt;it works nice.&lt;BR /&gt;&lt;BR /&gt;when I add in open() function "ctx=stm","rfm=stmlf" it solves my problem.&lt;BR /&gt;This is non-good approach may be?&lt;BR /&gt;</description>
      <pubDate>Thu, 22 Mar 2007 09:11:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/problem-open-variable-length-record-format-as-streamlf/m-p/3965953#M35697</guid>
      <dc:creator>Alexey Chupahin</dc:creator>
      <dc:date>2007-03-22T09:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: Problem: Open Variable-length record format as streamlf</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/problem-open-variable-length-record-format-as-streamlf/m-p/3965954#M35698</link>
      <description>Stick with just ctx=stm&lt;BR /&gt;&lt;BR /&gt;You are NOT supposed to do a SET FILE/ATTR=(RFM:STMLF) on a variable length file unless you know exactly what you are doing, in which case you would not ask here.&lt;BR /&gt;&lt;BR /&gt;By doing that the record length (16 bit binary integer record header and optional 8 bit word allignment fill per record will show up in the data stream creating nasty surprises.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 22 Mar 2007 09:17:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/problem-open-variable-length-record-format-as-streamlf/m-p/3965954#M35698</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2007-03-22T09:17:37Z</dc:date>
    </item>
    <item>
      <title>Re: Problem: Open Variable-length record format as streamlf</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/problem-open-variable-length-record-format-as-streamlf/m-p/3965955#M35699</link>
      <description>Some explanantion of how the files were created and the reason of the question:&lt;BR /&gt;&lt;BR /&gt; I'm trying to use ClamAV ported by Alexey to perform an automatic virus-scan on all my incoming E-mails. To intercept the E-mail contents I use the package DELIVER (from Hunter's site???). This package written in Pascal give the file with a variable record format.&lt;BR /&gt;&lt;BR /&gt;Than I use ClamAV to check the file, but no virusses are detected ever. However if you change the file format (set file/attr=rfm:stmlf) ClamAV suddenly detects the "correct" virus (as discovered by Alexey last night)&lt;BR /&gt;&lt;BR /&gt;            Jouk</description>
      <pubDate>Thu, 22 Mar 2007 09:20:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/problem-open-variable-length-record-format-as-streamlf/m-p/3965955#M35699</guid>
      <dc:creator>Jansen_8</dc:creator>
      <dc:date>2007-03-22T09:20:52Z</dc:date>
    </item>
    <item>
      <title>Re: Problem: Open Variable-length record format as streamlf</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/problem-open-variable-length-record-format-as-streamlf/m-p/3965956#M35700</link>
      <description>ClamAV isn't dealing with RMS record structures correctly.  (Yes, my grasp of the obvious is on display once again.)&lt;BR /&gt;&lt;BR /&gt;On Unix, everything is a byte stream.  &lt;BR /&gt;&lt;BR /&gt;On OpenVMS, it's a record stream and the tool or the C RTL has to reassemble it.  Depending on the record structures, a straight byte-stream operation will potentially encounter either the VFC bytes, or the carriage control, or other such low-level record data.  Sequential files are not directly transportable, save for a very few specific formats.&lt;BR /&gt;&lt;BR /&gt;This looks to be the same basic problem as the Apache web server hit.  You might look to see what was done to adjust that code.  (There was a release or two where all files served by SWS/Apache had to be stream LF, and that was fixed in the most recent release(s).&lt;BR /&gt;&lt;BR /&gt;--&lt;BR /&gt;&lt;BR /&gt;Haven't looked to see if ClamAV is dealing with the polymorphic or metamorphic malware that's now loose in the wild.  But that's fodder for another discussion.&lt;BR /&gt;</description>
      <pubDate>Thu, 22 Mar 2007 09:45:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/problem-open-variable-length-record-format-as-streamlf/m-p/3965956#M35700</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2007-03-22T09:45:05Z</dc:date>
    </item>
  </channel>
</rss>

