<?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 Scratch files in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Scratch-files/m-p/802266#M38318</link>
    <description>Have you tried just closing them? According to my reference, if you close them, then they will automatically be deleted, but if you don't issue a CLOSE on them, they may stay around.</description>
    <pubDate>Fri, 24 Feb 2012 12:51:38 GMT</pubDate>
    <dc:creator>lklawrie</dc:creator>
    <dc:date>2012-02-24T12:51:38Z</dc:date>
    <item>
      <title>Scratch files</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Scratch-files/m-p/802265#M38317</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have a very simple question about openning scratch files. I am using IVF 9.0. &lt;BR /&gt;I have some scratch files opened during the run. I thought that these files would be deleted automatically &lt;BR /&gt;after the runis completed. But theyare not. I then have to use a CLOSE statement with STATUS = '&lt;BR /&gt;DELETE' todelete the scratch files.&lt;BR /&gt;Something wong with my coding? My open and close statements are attached. Thanks.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000; font-size: x-small;"&gt;&lt;SPAN style="color: #ff0000; font-size: x-small;"&gt;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: x-small;"&gt;&lt;/SPAN&gt;&lt;B&gt;&lt;SPAN style="color: #0000ff; font-size: x-small;"&gt;&lt;SPAN style="color: #0000ff; font-size: x-small;"&gt;DO&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: x-small;"&gt; N=1,M&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-size: x-small;"&gt;&lt;SPAN style="color: #ff0000; font-size: x-small;"&gt;&lt;FONT size="2" color="#ff0000"&gt;&lt;FONT size="2" color="#ff0000"&gt;&lt;P&gt; &lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;FONT size="2" color="#ff0000"&gt;&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;SPAN style="font-size: x-small;"&gt;IFILE=IC+NC(N)&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-size: x-small;"&gt;&lt;SPAN style="color: #ff0000; font-size: x-small;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN style="font-size: x-small;"&gt;&lt;/SPAN&gt;&lt;B&gt;&lt;SPAN style="color: #0000ff; font-size: x-small;"&gt;&lt;SPAN style="color: #0000ff; font-size: x-small;"&gt; OPEN&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: x-small;"&gt; (UNIT=IFILE, FORM=&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: x-small;"&gt;&lt;SPAN style="color: #800000; font-size: x-small;"&gt;'UNFORMATTED'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: x-small;"&gt;, STATUS=&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: x-small;"&gt;&lt;SPAN style="color: #800000; font-size: x-small;"&gt;'SCRATCH'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: x-small;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-size: x-small;"&gt;ERR=95)&lt;BR /&gt;&lt;/SPAN&gt;&lt;B&gt;&lt;SPAN style="color: #0000ff; font-size: x-small;"&gt;&lt;SPAN style="color: #0000ff; font-size: x-small;"&gt;ENDDO&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;DO N=1, M&lt;BR /&gt; IFILE=IC+NC(N)&lt;BR /&gt;CLOSE(IFILE,STATUS='DELETE')&lt;BR /&gt;ENDDO&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/B&gt;&lt;/B&gt;&lt;/B&gt;</description>
      <pubDate>Fri, 24 Feb 2012 11:42:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Scratch-files/m-p/802265#M38317</guid>
      <dc:creator>maria</dc:creator>
      <dc:date>2012-02-24T11:42:18Z</dc:date>
    </item>
    <item>
      <title>Scratch files</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Scratch-files/m-p/802266#M38318</link>
      <description>Have you tried just closing them? According to my reference, if you close them, then they will automatically be deleted, but if you don't issue a CLOSE on them, they may stay around.</description>
      <pubDate>Fri, 24 Feb 2012 12:51:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Scratch-files/m-p/802266#M38318</guid>
      <dc:creator>lklawrie</dc:creator>
      <dc:date>2012-02-24T12:51:38Z</dc:date>
    </item>
    <item>
      <title>Scratch files</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Scratch-files/m-p/802267#M38319</link>
      <description>The scratch files should be deleted when the program terminates.In both9.0 and the latest version of the compiler, the scratch file is being deleted for the simple program below:&lt;BR /&gt;&lt;BR /&gt;[fortran]program test
OPEN (UNIT=5, FORM='UNFORMATTED',  STATUS='SCRATCH' )
write(5,IOSTAT=IO_STATUS)  "Hello"
!close(5)
end program test
[/fortran]&lt;BR /&gt;Can you share an example program where the scratch file is not being deleted?</description>
      <pubDate>Fri, 24 Feb 2012 14:28:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Scratch-files/m-p/802267#M38319</guid>
      <dc:creator>Anonymous66</dc:creator>
      <dc:date>2012-02-24T14:28:15Z</dc:date>
    </item>
  </channel>
</rss>

