<?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: The STREAM Record Format in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/the-stream-record-format/m-p/3612848#M7609</link>
    <description>Dom,&lt;BR /&gt;May be record size is really too long for your application.&lt;BR /&gt;Because your file is external (no VMS) may also missed some record attribute. You don't refer about this of your dir/full.&lt;BR /&gt;I guess you can declare CR with follow command:&lt;BR /&gt;$ SET FILE /ATTRIB=(RAT:CR)&lt;BR /&gt;You have to see how long is longest record in dir/full. In your fortran software, you must allocate a buffer for biggest record.&lt;BR /&gt;To avoid losting of type, before using fortran, try to read with type command. After you can see file with TYPE (without SYSTEM-F-EXQUOTA and ignoring what is displayed), you are able to read with fortran application.&lt;BR /&gt; &lt;BR /&gt;Antonio Vigliotti&lt;BR /&gt;</description>
    <pubDate>Fri, 26 Aug 2005 10:33:22 GMT</pubDate>
    <dc:creator>Antoniov.</dc:creator>
    <dc:date>2005-08-26T10:33:22Z</dc:date>
    <item>
      <title>The STREAM Record Format</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/the-stream-record-format/m-p/3612842#M7603</link>
      <description>Using VAX / VMS 6.1  (Iknow ... it's old)&lt;BR /&gt;&lt;BR /&gt;I'm looking at the manual "Guide to OpenVMS File Applicaions" and on page 2-13 I read about the Stream record format:&lt;BR /&gt;&lt;BR /&gt;"This variation uses a terminator from a limited set of special characters:  The carriage return (CR), the carriage-return/line feed combination (CRLF) or the form feed (FF)"&lt;BR /&gt;&lt;BR /&gt;But how do I specify the exact terminator in use?  &lt;BR /&gt;&lt;BR /&gt;The specific problem is this:  I have a file from the outside (non-VMS), and dir/full shows it is a STREAM, and DUMP shows there is a CR/LF at the end of every record.  I can't read the file because I get "Record too long", and I think it's because the program does not know how to find the end of record -- ie, it is looking for the wrong terminator.&lt;BR /&gt;&lt;BR /&gt;Dom</description>
      <pubDate>Fri, 26 Aug 2005 09:59:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/the-stream-record-format/m-p/3612842#M7603</guid>
      <dc:creator>Dominic Olivastro</dc:creator>
      <dc:date>2005-08-26T09:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: The STREAM Record Format</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/the-stream-record-format/m-p/3612843#M7604</link>
      <description>Dom,&lt;BR /&gt;do you see "Record too long" using editor (EDT)?&lt;BR /&gt;If yes, there is no error. EDT can manager only file with max record len = 254.&lt;BR /&gt;To check integrity of file use follow command:&lt;BR /&gt;$ DUMP &lt;MYFILE&gt;/REC/PAGE&lt;BR /&gt;You could see records of file.&lt;BR /&gt; &lt;BR /&gt;Antonio Vigliotti&lt;BR /&gt;&lt;/MYFILE&gt;</description>
      <pubDate>Fri, 26 Aug 2005 10:04:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/the-stream-record-format/m-p/3612843#M7604</guid>
      <dc:creator>Antoniov.</dc:creator>
      <dc:date>2005-08-26T10:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: The STREAM Record Format</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/the-stream-record-format/m-p/3612844#M7605</link>
      <description>You likely used ftp to get the file onto VMS, it us therefore possible the file attributes got messed up in thr process. &lt;BR /&gt;&lt;BR /&gt;Try changing the file type attribute to a type that mirrors most closely the orignal format. E.g :-&lt;BR /&gt;&lt;BR /&gt;Set file foo.bar / att = RFM:STM     &lt;BR /&gt;Set file foo.bar / att = RFM:STMCR&lt;BR /&gt;Set file foo.bar / att = RFM:STMLF &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 26 Aug 2005 10:11:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/the-stream-record-format/m-p/3612844#M7605</guid>
      <dc:creator>Steve Watts_1</dc:creator>
      <dc:date>2005-08-26T10:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: The STREAM Record Format</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/the-stream-record-format/m-p/3612845#M7606</link>
      <description>Stream should be ok with CRLF has a record terminator. Do you know how long the longest record is ?&lt;BR /&gt;Can you type the file ?</description>
      <pubDate>Fri, 26 Aug 2005 10:11:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/the-stream-record-format/m-p/3612845#M7606</guid>
      <dc:creator>Ian Miller.</dc:creator>
      <dc:date>2005-08-26T10:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: The STREAM Record Format</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/the-stream-record-format/m-p/3612846#M7607</link>
      <description>Thanks, Antonio.  You're right.  DUMP sees the records correctly.  I get the "Record Too Long" message from a Fortran program, in the read statement.  Also, TYPE gives me the following:&lt;BR /&gt;&lt;BR /&gt;%TYPE-F-WRITEERR, error writing SYS$OUTPUT:.;&lt;BR /&gt;-RMS-F-SYS, QIO system service request failed&lt;BR /&gt;-SYSTEM-F-EXQUOTA, process quota exceeded&lt;BR /&gt;&lt;BR /&gt;But I still have to ask:  How does VMS (or DUMP) know that the CRLF is being used as a terminator?&lt;BR /&gt;&lt;BR /&gt;Dom&lt;BR /&gt;</description>
      <pubDate>Fri, 26 Aug 2005 10:13:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/the-stream-record-format/m-p/3612846#M7607</guid>
      <dc:creator>Dominic Olivastro</dc:creator>
      <dc:date>2005-08-26T10:13:31Z</dc:date>
    </item>
    <item>
      <title>Re: The STREAM Record Format</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/the-stream-record-format/m-p/3612847#M7608</link>
      <description>VMS knows it because the information is stored in the file's meta data (the file header).&lt;BR /&gt;&lt;BR /&gt;$ write sys$output f$file_attributes ("t.txt","rfm")&lt;BR /&gt;STM&lt;BR /&gt;$</description>
      <pubDate>Fri, 26 Aug 2005 10:22:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/the-stream-record-format/m-p/3612847#M7608</guid>
      <dc:creator>Uwe Zessin</dc:creator>
      <dc:date>2005-08-26T10:22:32Z</dc:date>
    </item>
    <item>
      <title>Re: The STREAM Record Format</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/the-stream-record-format/m-p/3612848#M7609</link>
      <description>Dom,&lt;BR /&gt;May be record size is really too long for your application.&lt;BR /&gt;Because your file is external (no VMS) may also missed some record attribute. You don't refer about this of your dir/full.&lt;BR /&gt;I guess you can declare CR with follow command:&lt;BR /&gt;$ SET FILE /ATTRIB=(RAT:CR)&lt;BR /&gt;You have to see how long is longest record in dir/full. In your fortran software, you must allocate a buffer for biggest record.&lt;BR /&gt;To avoid losting of type, before using fortran, try to read with type command. After you can see file with TYPE (without SYSTEM-F-EXQUOTA and ignoring what is displayed), you are able to read with fortran application.&lt;BR /&gt; &lt;BR /&gt;Antonio Vigliotti&lt;BR /&gt;</description>
      <pubDate>Fri, 26 Aug 2005 10:33:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/the-stream-record-format/m-p/3612848#M7609</guid>
      <dc:creator>Antoniov.</dc:creator>
      <dc:date>2005-08-26T10:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: The STREAM Record Format</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/the-stream-record-format/m-p/3612849#M7610</link>
      <description>&amp;gt;&amp;gt; But how do I specify the exact terminator in use? &lt;BR /&gt;&lt;BR /&gt;All of them, when found in the file.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; I can't read the file because I get "Record too long", &lt;BR /&gt;&lt;BR /&gt;That message should probably read "Record too long for use buffer". Some programs dynamically choose a record buffer size based on the minumum of a program provided value (512?) and the "MRS" (maximum record size) of the file and the "LRL" (longest recorded record). Files 'from the outside' sometimes miss this LRL. Just set a reasonably large value with SET FILE/ATTR=LRL=xxx, or try to CONVERT the file to get the real value. (hmmm... convert may need LRL=32767 just to be sure).&lt;BR /&gt;&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
      <pubDate>Fri, 26 Aug 2005 10:44:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/the-stream-record-format/m-p/3612849#M7610</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2005-08-26T10:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: The STREAM Record Format</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/the-stream-record-format/m-p/3612850#M7611</link>
      <description>You guys got everything right!&lt;BR /&gt;&lt;BR /&gt;Steve -- I did get the file through ftp&lt;BR /&gt;Antonio -- The problem was solved when I changed the fortran program to RECL=3050&lt;BR /&gt;Hein -- I didn't know that STREAM meant that all and any of the terminators could be used.  I guess I misread the manual.&lt;BR /&gt;&lt;BR /&gt;Thanks again,&lt;BR /&gt;Dom&lt;BR /&gt;</description>
      <pubDate>Fri, 26 Aug 2005 11:18:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/the-stream-record-format/m-p/3612850#M7611</guid>
      <dc:creator>Dominic Olivastro</dc:creator>
      <dc:date>2005-08-26T11:18:33Z</dc:date>
    </item>
  </channel>
</rss>

