<?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: VMS 5.5.2 FORTRAN OPEN error 30 attempting to create file in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/vms-5-5-2-fortran-open-error-30-attempting-to-create-file/m-p/3810873#M9980</link>
    <description>&lt;BR /&gt;Hello William,&lt;BR /&gt;&lt;BR /&gt;Welcome to the OpenVMS ITRC Forum.&lt;BR /&gt;&lt;BR /&gt;I suspect that your problem is lack of CONTIGUOUS free space on the disk.&lt;BR /&gt;&lt;BR /&gt;Directory entries are inserted in alphatical order in the directory blocks. When a block fills, the rest of the directory is shuffled up by a block and the directory may need to grow.&lt;BR /&gt;If it needs to grow, then a CONTIGUOS chunk of diskspace, larger then the current directory is allocated. If that fails, then the directory enty insertion fails, and thus the file create fails.&lt;BR /&gt;&lt;BR /&gt;Some file name may be directed to directory blocks with some free space left, while others find a full block and trigger the (failing) growth.&lt;BR /&gt;&lt;BR /&gt;270 K block free is really pittyful.&lt;BR /&gt;&lt;BR /&gt;I recommend DFU to analyze the situation,&lt;BR /&gt;and/or the VMS Defrag tool in display mode.&lt;BR /&gt;&lt;BR /&gt;You can also try:&lt;BR /&gt;&lt;BR /&gt;$COPY /CONTIG/ALLO=NNN nl: tmp.tmp&lt;BR /&gt;where NNN = current directty size plus a few.&lt;BR /&gt;If that fails, then you know you are in trouble.&lt;BR /&gt;&lt;BR /&gt;Good luck,&lt;BR /&gt;&lt;BR /&gt;Hein&lt;BR /&gt;HvdH Performance Consulting.&lt;BR /&gt;</description>
    <pubDate>Thu, 22 Jun 2006 13:37:06 GMT</pubDate>
    <dc:creator>Hein van den Heuvel</dc:creator>
    <dc:date>2006-06-22T13:37:06Z</dc:date>
    <item>
      <title>VMS 5.5.2 FORTRAN OPEN error 30 attempting to create file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/vms-5-5-2-fortran-open-error-30-attempting-to-create-file/m-p/3810871#M9978</link>
      <description>The VAX FORTRAN manual does not provide specific info for this error. The file to be created would contain less than 40 blocks. There were 270K blocks of free diskspace. Directory contained less than 1000 files. Disk error count was zero. The program which creates these files does so for an average of 20 files/day. Each file is named "(nnnnnn_a)_HEAT_FILE.DAT". Ran ANALYZE/REPAIR. Several invalid directory entries repaired in other directories. Same error occurred day after repair. Attempted to recreate error by creating files at DCL command line in the affected directory. Varied results. Consistently succeeds in creating similarly named files. Consistently fails to create other filenames. No obvious pattern. Can provide more info on this error and possible solutions???</description>
      <pubDate>Thu, 22 Jun 2006 12:35:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/vms-5-5-2-fortran-open-error-30-attempting-to-create-file/m-p/3810871#M9978</guid>
      <dc:creator>William Jones III</dc:creator>
      <dc:date>2006-06-22T12:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: VMS 5.5.2 FORTRAN OPEN error 30 attempting to create file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/vms-5-5-2-fortran-open-error-30-attempting-to-create-file/m-p/3810872#M9979</link>
      <description>What message(s) or $STATUS values do you get from the failed attempts at creating the files from DCL?  What was the DCL command that failed?</description>
      <pubDate>Thu, 22 Jun 2006 12:47:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/vms-5-5-2-fortran-open-error-30-attempting-to-create-file/m-p/3810872#M9979</guid>
      <dc:creator>Mike Kier</dc:creator>
      <dc:date>2006-06-22T12:47:40Z</dc:date>
    </item>
    <item>
      <title>Re: VMS 5.5.2 FORTRAN OPEN error 30 attempting to create file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/vms-5-5-2-fortran-open-error-30-attempting-to-create-file/m-p/3810873#M9980</link>
      <description>&lt;BR /&gt;Hello William,&lt;BR /&gt;&lt;BR /&gt;Welcome to the OpenVMS ITRC Forum.&lt;BR /&gt;&lt;BR /&gt;I suspect that your problem is lack of CONTIGUOUS free space on the disk.&lt;BR /&gt;&lt;BR /&gt;Directory entries are inserted in alphatical order in the directory blocks. When a block fills, the rest of the directory is shuffled up by a block and the directory may need to grow.&lt;BR /&gt;If it needs to grow, then a CONTIGUOS chunk of diskspace, larger then the current directory is allocated. If that fails, then the directory enty insertion fails, and thus the file create fails.&lt;BR /&gt;&lt;BR /&gt;Some file name may be directed to directory blocks with some free space left, while others find a full block and trigger the (failing) growth.&lt;BR /&gt;&lt;BR /&gt;270 K block free is really pittyful.&lt;BR /&gt;&lt;BR /&gt;I recommend DFU to analyze the situation,&lt;BR /&gt;and/or the VMS Defrag tool in display mode.&lt;BR /&gt;&lt;BR /&gt;You can also try:&lt;BR /&gt;&lt;BR /&gt;$COPY /CONTIG/ALLO=NNN nl: tmp.tmp&lt;BR /&gt;where NNN = current directty size plus a few.&lt;BR /&gt;If that fails, then you know you are in trouble.&lt;BR /&gt;&lt;BR /&gt;Good luck,&lt;BR /&gt;&lt;BR /&gt;Hein&lt;BR /&gt;HvdH Performance Consulting.&lt;BR /&gt;</description>
      <pubDate>Thu, 22 Jun 2006 13:37:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/vms-5-5-2-fortran-open-error-30-attempting-to-create-file/m-p/3810873#M9980</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2006-06-22T13:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: VMS 5.5.2 FORTRAN OPEN error 30 attempting to create file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/vms-5-5-2-fortran-open-error-30-attempting-to-create-file/m-p/3810874#M9981</link>
      <description>William,&lt;BR /&gt;&lt;BR /&gt;  Presumably your program has an IOSTAT clause in the OPEN statement to catch the error status. Although that's good programming practice, to control behaviour in the case of errors, but it can obscure useful information, as any failure conditions are reduced to a single number.&lt;BR /&gt;&lt;BR /&gt;  If you omit the IOSTAT, the FORTRAN RTL will signal the whole condition, including secondary and tertiary RMS conditions.&lt;BR /&gt;&lt;BR /&gt;  If the condition is repeatable, try removing the IOSTAT clause from the OPEN statement, at least while you're debugging.&lt;BR /&gt;&lt;BR /&gt;  More generally, you can have the best of both worlds by writing your code like this:&lt;BR /&gt;&lt;BR /&gt;  OPEN( whatever... IOSTAT=stat)&lt;BR /&gt;  IF(stat.EQ.expected-error1)THEN&lt;BR /&gt;    deal with expected error1&lt;BR /&gt;  ELSEIF(stat.EQ.expected-error2)THEN&lt;BR /&gt;    deal with expected error2&lt;BR /&gt;  ELSEIF (other expected errors)&lt;BR /&gt;    ...&lt;BR /&gt;  ELSEIF (unknown error) THEN&lt;BR /&gt;    OPEN(same as above but without IOSTAT)&lt;BR /&gt;  ENDIF&lt;BR /&gt;&lt;BR /&gt;(Oh, and here's a nickle, go buy youself a GB of disk space! Work out how much of your time 270K blocks of disk is worth - probably just a few seconds)</description>
      <pubDate>Thu, 22 Jun 2006 17:23:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/vms-5-5-2-fortran-open-error-30-attempting-to-create-file/m-p/3810874#M9981</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2006-06-22T17:23:20Z</dc:date>
    </item>
    <item>
      <title>Re: VMS 5.5.2 FORTRAN OPEN error 30 attempting to create file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/vms-5-5-2-fortran-open-error-30-attempting-to-create-file/m-p/3810875#M9982</link>
      <description>Also, immediately following an I/O statement that returns an error either via ERR= or IOS=iostat you can call the FORTRAN intrinsic ERRSNS to get the RMS STS and STV values:&lt;BR /&gt;&lt;BR /&gt;ERRSNS ([io-err] [,sys-err] [,stat] [,unit] [,cond])&lt;BR /&gt;&lt;BR /&gt;io-err - Stores the most recent Fortran error number that occurred during program execution.  The value is zero if no error has occurred.&lt;BR /&gt;&lt;BR /&gt;sys-err - Stores the most recent RMS STS status code.&lt;BR /&gt;&lt;BR /&gt;stat - Stores the most recent RMS STV status value.  This status value provides additional status information.&lt;BR /&gt;&lt;BR /&gt;unit - Stores the logical unit number (if the last the last error was an I/O error).&lt;BR /&gt;&lt;BR /&gt;cond - Stores the actual processor value.  This value is always zero.</description>
      <pubDate>Fri, 23 Jun 2006 06:47:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/vms-5-5-2-fortran-open-error-30-attempting-to-create-file/m-p/3810875#M9982</guid>
      <dc:creator>Mike Kier</dc:creator>
      <dc:date>2006-06-23T06:47:00Z</dc:date>
    </item>
    <item>
      <title>Re: VMS 5.5.2 FORTRAN OPEN error 30 attempting to create file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/vms-5-5-2-fortran-open-error-30-attempting-to-create-file/m-p/3810876#M9983</link>
      <description>I tend to agree with Hein.  I also have seen very strange things happen on disks that get almost full and fragmented.  If you don't have a defragmentation tool then you will have to find time to backup the disk to tape, initialize the disk and restore it from tape.  Also, when you do an analyze/disk/rep on a drive look in the [SYSLOST] directory and see if it recovered any files.  If they are not needed then delete them.  You may be able to recover space that way.&lt;BR /&gt;&lt;BR /&gt;Phil</description>
      <pubDate>Fri, 23 Jun 2006 08:49:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/vms-5-5-2-fortran-open-error-30-attempting-to-create-file/m-p/3810876#M9983</guid>
      <dc:creator>Phillip Thayer</dc:creator>
      <dc:date>2006-06-23T08:49:41Z</dc:date>
    </item>
  </channel>
</rss>

