<?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: Record Length in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Record-Length/m-p/953166#M20112</link>
    <description>If the record length has been written into a direct access file, it can be opened correctly with two subsequent OPEN calls. Consider following simple example:  &lt;BR /&gt;  &lt;BR /&gt;WRITE(LU,REC=1) Rec_len  &lt;BR /&gt;CLOSE(LU)  &lt;BR /&gt;  &lt;BR /&gt;IRECL = 256  &lt;BR /&gt;OPEN(LU,ACCESS='DIRECT',ERR=999,FILE=FNAME,  &lt;BR /&gt;&amp;amp;     FORM='UNFORMATTED',STATUS='OLD',RECL=IRECL)  &lt;BR /&gt;READ(LU,REC=1) Rec_len  &lt;BR /&gt;  &lt;BR /&gt;CLOSE(LU)  &lt;BR /&gt;OPEN(LU,ACCESS='DIRECT',ERR=999,FILE=FNAME,  &lt;BR /&gt;&amp;amp;     FORM='UNFORMATTED',STATUS='OLD',RECL=Rec_len)  &lt;BR /&gt;  &lt;BR /&gt;This is, of course, possible if the record length has been written into the file. It is not necessary that it is the first item in the first record, but thus makes things easier.  &lt;BR /&gt;  &lt;BR /&gt;Kari K</description>
    <pubDate>Thu, 31 May 2001 17:44:50 GMT</pubDate>
    <dc:creator>Intel_C_Intel</dc:creator>
    <dc:date>2001-05-31T17:44:50Z</dc:date>
    <item>
      <title>Record Length</title>
      <link>https://community.intel.com/t5/Software-Archive/Record-Length/m-p/953163#M20109</link>
      <description>Hi,  &lt;BR /&gt;I want to open an existing direct access unformatted file, whose record length I don't know. In which way I can get the record legth for OPEN statement. Following does not work, because it returns always 0 or 132.  &lt;BR /&gt;  &lt;BR /&gt;INQUIRE(FILE=FNAME,RECL=LRL_H)  &lt;BR /&gt;  &lt;BR /&gt;The file has been created as follows:  &lt;BR /&gt;  &lt;BR /&gt;OPEN(LU, ACCESS='DIRECT', ERR=999, FILE=FNAME,  &lt;BR /&gt;     &amp;amp;    FORM='UNFORMATTED', STATUS='NEW', RECORDTYPE='FIXED',  &lt;BR /&gt;     &amp;amp;	RECL=LRL_H) &lt;BR /&gt; &lt;BR /&gt;Thanks! KK</description>
      <pubDate>Wed, 30 May 2001 00:47:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Record-Length/m-p/953163#M20109</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2001-05-30T00:47:12Z</dc:date>
    </item>
    <item>
      <title>Re: Record Length</title>
      <link>https://community.intel.com/t5/Software-Archive/Record-Length/m-p/953164#M20110</link>
      <description>There's no way to do this reliably - the record length is not stored in the file.  If you have some idea of the length, you can see if it is an integral divisor of the file size in bytes (keep in mind that unformatted RECL values are in units of 4 bytes.)&lt;BR /&gt;&lt;BR /&gt;Steve</description>
      <pubDate>Wed, 30 May 2001 01:52:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Record-Length/m-p/953164#M20110</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2001-05-30T01:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: Record Length</title>
      <link>https://community.intel.com/t5/Software-Archive/Record-Length/m-p/953165#M20111</link>
      <description>I was just wondering: Shouldn't you open the file with STATUS='OLD' if it is an EXISTING file you are trying to open? &lt;BR /&gt; &lt;BR /&gt;Regards, &lt;BR /&gt;Sabalan.</description>
      <pubDate>Wed, 30 May 2001 17:03:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Record-Length/m-p/953165#M20111</guid>
      <dc:creator>sabalan</dc:creator>
      <dc:date>2001-05-30T17:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: Record Length</title>
      <link>https://community.intel.com/t5/Software-Archive/Record-Length/m-p/953166#M20112</link>
      <description>If the record length has been written into a direct access file, it can be opened correctly with two subsequent OPEN calls. Consider following simple example:  &lt;BR /&gt;  &lt;BR /&gt;WRITE(LU,REC=1) Rec_len  &lt;BR /&gt;CLOSE(LU)  &lt;BR /&gt;  &lt;BR /&gt;IRECL = 256  &lt;BR /&gt;OPEN(LU,ACCESS='DIRECT',ERR=999,FILE=FNAME,  &lt;BR /&gt;&amp;amp;     FORM='UNFORMATTED',STATUS='OLD',RECL=IRECL)  &lt;BR /&gt;READ(LU,REC=1) Rec_len  &lt;BR /&gt;  &lt;BR /&gt;CLOSE(LU)  &lt;BR /&gt;OPEN(LU,ACCESS='DIRECT',ERR=999,FILE=FNAME,  &lt;BR /&gt;&amp;amp;     FORM='UNFORMATTED',STATUS='OLD',RECL=Rec_len)  &lt;BR /&gt;  &lt;BR /&gt;This is, of course, possible if the record length has been written into the file. It is not necessary that it is the first item in the first record, but thus makes things easier.  &lt;BR /&gt;  &lt;BR /&gt;Kari K</description>
      <pubDate>Thu, 31 May 2001 17:44:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Record-Length/m-p/953166#M20112</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2001-05-31T17:44:50Z</dc:date>
    </item>
  </channel>
</rss>

