<?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: MF Cobol Sorting large files problem in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/mf-cobol-sorting-large-files-problem/m-p/3154762#M158239</link>
    <description>Was the COBOL program compiled for 64bits? If not, you'll likely need to change the code to change lseek to lseek64 (and equivalent file positioning calls). The filesystem may be capable but the program can't read or write beyond 2Gb.</description>
    <pubDate>Wed, 31 Dec 2003 21:30:58 GMT</pubDate>
    <dc:creator>Bill Hassell</dc:creator>
    <dc:date>2003-12-31T21:30:58Z</dc:date>
    <item>
      <title>MF Cobol Sorting large files problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mf-cobol-sorting-large-files-problem/m-p/3154759#M158236</link>
      <description>On our production machine while doing sort through COBOL (file which is of 640 MB size.), we got cobol run time error&lt;BR /&gt;&lt;BR /&gt;--------------------------------------------&lt;BR /&gt;"mergetemp(): mFt_os_write() failed errno: 27 (File too large) fe_stat: 28&lt;BR /&gt; &lt;BR /&gt;I/O error : file 'SORT-FILE'&lt;BR /&gt;error code: 9/194 (ANS74), pc=0, call=1, seg=0&lt;BR /&gt;194     File size too large&lt;BR /&gt; &lt;BR /&gt;HP/MF COBOL Version: B.13.40&lt;BR /&gt;HP-UX unibank B.11.00 U 9000/800&lt;BR /&gt;pid: 21874 gid: 105 uid: 104&lt;BR /&gt;Thu Jan  1 04:40:18 2004&lt;BR /&gt;  4:40am  up 6 days, 11:14,  5 users,  load average: 0.31, 0.22, 0.19&lt;BR /&gt;Thread mode:            No Threads&lt;BR /&gt;RTS Error:              COBOL&lt;BR /&gt;Sync Signals:           COBOL&lt;BR /&gt;ASync Signals:          COBOL&lt;BR /&gt;cobtidy on exception:   False"&lt;BR /&gt;----------------------------------------------&lt;BR /&gt;&lt;BR /&gt;We enable largefile of the file system where the sort file is residing. Still we are getting the same error.&lt;BR /&gt;&lt;BR /&gt;Is it required to review any unix kernel parameter for this problem.&lt;BR /&gt;&lt;BR /&gt;Versions:&lt;BR /&gt;&lt;BR /&gt;HP-UX 11.0 (RP7400)&lt;BR /&gt;MF Cobol 4.1 (Bundled with HP-UX)&lt;BR /&gt;&lt;BR /&gt;This is very urgent, can any body please repond.</description>
      <pubDate>Wed, 31 Dec 2003 19:30:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mf-cobol-sorting-large-files-problem/m-p/3154759#M158236</guid>
      <dc:creator>C Kishore</dc:creator>
      <dc:date>2003-12-31T19:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: MF Cobol Sorting large files problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mf-cobol-sorting-large-files-problem/m-p/3154760#M158237</link>
      <description>The only thing I can think of is that you are trying to generate a file larger than 2 GB. Thats the exact operating system code you'd get back if you tried to create a file say 2.2 GB on a filesystem that doesn't have largefiles enabled.&lt;BR /&gt;&lt;BR /&gt;Perhaps the cobol application is trying to create data files too large.&lt;BR /&gt;&lt;BR /&gt;You can use the fsadm tool to convert the filesystem. Then just umount it, change the mount option to largefiles and mount it again.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Wed, 31 Dec 2003 20:55:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mf-cobol-sorting-large-files-problem/m-p/3154760#M158237</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-12-31T20:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: MF Cobol Sorting large files problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mf-cobol-sorting-large-files-problem/m-p/3154761#M158238</link>
      <description>We have already enabled largefiles for that file system. But still we are facing the same problem.</description>
      <pubDate>Wed, 31 Dec 2003 21:21:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mf-cobol-sorting-large-files-problem/m-p/3154761#M158238</guid>
      <dc:creator>C Kishore</dc:creator>
      <dc:date>2003-12-31T21:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: MF Cobol Sorting large files problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mf-cobol-sorting-large-files-problem/m-p/3154762#M158239</link>
      <description>Was the COBOL program compiled for 64bits? If not, you'll likely need to change the code to change lseek to lseek64 (and equivalent file positioning calls). The filesystem may be capable but the program can't read or write beyond 2Gb.</description>
      <pubDate>Wed, 31 Dec 2003 21:30:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mf-cobol-sorting-large-files-problem/m-p/3154762#M158239</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2003-12-31T21:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: MF Cobol Sorting large files problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mf-cobol-sorting-large-files-problem/m-p/3154763#M158240</link>
      <description>Our cobol compiler (MF COBOL 4.1) is 32 bit.&lt;BR /&gt;We are using SORT verb of COBOL in the cobol applications, we are not using lseek.</description>
      <pubDate>Wed, 31 Dec 2003 23:39:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mf-cobol-sorting-large-files-problem/m-p/3154763#M158240</guid>
      <dc:creator>C Kishore</dc:creator>
      <dc:date>2003-12-31T23:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: MF Cobol Sorting large files problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mf-cobol-sorting-large-files-problem/m-p/3154764#M158241</link>
      <description>I have a hard time believing, even with very stupid indexing schemes, that code could create a sorted file over 3X bigger than the original 640MB file to reach the 2GB limit.&lt;BR /&gt;&lt;BR /&gt;There are 2 other things that can trigger an errno = 27: 1) ulimit 2) quotas &lt;BR /&gt;&lt;BR /&gt;Use ulimit -a to check ulimits and also check to see if quotas are in play on this filesystem.&lt;BR /&gt;&lt;BR /&gt;Plan B. Format your data and call the UNIX sort utility.&lt;BR /&gt;</description>
      <pubDate>Thu, 01 Jan 2004 13:58:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mf-cobol-sorting-large-files-problem/m-p/3154764#M158241</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2004-01-01T13:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: MF Cobol Sorting large files problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mf-cobol-sorting-large-files-problem/m-p/3154765#M158242</link>
      <description>I have a hard time believing, even with very stupid indexing schemes, that code could create a sorted file over 3X bigger than the original 640MB file to reach the 2GB limit.&lt;BR /&gt;&lt;BR /&gt;There are 2 other things that can trigger an errno = 27: 1) ulimit 2) quotas &lt;BR /&gt;&lt;BR /&gt;Use ulimit -a to check ulimits and also check to see if quotas are in play on this filesystem.&lt;BR /&gt;&lt;BR /&gt;Plan B. Format your data and call the UNIX sort utility.&lt;BR /&gt;&lt;BR /&gt;Note also that the process itself can set ulimit which would not be visible to the calling shell. You really need to proble your code and determine ulimit at run-time.&lt;BR /&gt;&lt;BR /&gt;If would be helpful to monitor the size of this file while the process is running and determine the size at failure (or as near as you can get it).&lt;BR /&gt;</description>
      <pubDate>Thu, 01 Jan 2004 14:01:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mf-cobol-sorting-large-files-problem/m-p/3154765#M158242</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2004-01-01T14:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: MF Cobol Sorting large files problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mf-cobol-sorting-large-files-problem/m-p/3154766#M158243</link>
      <description>One other possibility is that the COBOL sort verb uses temp files located on volumes that are not largefile-enabled. In the meantime, use Clay's suggestion to call the HP-UX sort command.</description>
      <pubDate>Thu, 01 Jan 2004 23:01:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mf-cobol-sorting-large-files-problem/m-p/3154766#M158243</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2004-01-01T23:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: MF Cobol Sorting large files problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mf-cobol-sorting-large-files-problem/m-p/3154767#M158244</link>
      <description>This is really wierd.  We're having the same problem.  We're investigating. We also found that even if TMPDIR is set for somewhere else, MFCOBOL is using /var/tmp to write its temporary sort file.&lt;BR /&gt;&lt;BR /&gt;We cannot use the UNIX sort either.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 27 Jan 2005 16:40:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mf-cobol-sorting-large-files-problem/m-p/3154767#M158244</guid>
      <dc:creator>Sylvia Welch</dc:creator>
      <dc:date>2005-01-27T16:40:01Z</dc:date>
    </item>
    <item>
      <title>Re: MF Cobol Sorting large files problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mf-cobol-sorting-large-files-problem/m-p/3154768#M158245</link>
      <description>If the MFCOBOL docs do not document the choice for a sort directory, try setting TEMP and TMP as well as TMPDIR. You might also see if strings prog_name shows /var/tmp hardcoded in the program. However, /var/tmp is the SysV V.4 filesystem layout location for application temp files, so you can always make /var/tmp a separate mountpoint and make it dozens of Gb in size if necessary.</description>
      <pubDate>Fri, 28 Jan 2005 08:04:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mf-cobol-sorting-large-files-problem/m-p/3154768#M158245</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2005-01-28T08:04:06Z</dc:date>
    </item>
  </channel>
</rss>

