- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Micro Focus COBOL Error 181 "Invalid parameter err...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-30-2008 05:33 AM
тАО10-30-2008 05:33 AM
We're running Micro Focus COBOL 4.0:
$ cob -V
version @(#)cob.c 1.313
PRN=RXCPR/AAD:9i.T4.40.04
PTI=SP2
I see no work
$ cobrun
V4.0 revision 0 build 10/10/2 G; 14705. Run Time System RXCPR/AA0/00000D
Intermittently and unpredictably, we've got a program aborting on an OPEN statement with the following:
I/O error : file 'RECOOUT1'
error code: 9/181 (ANS74), pc=0 call=1 seg=0
181 Invalid parameter error
The SELECT statement for the failing file is
SELECT RECOOUT-FILE ASSIGN TO RECOOUT1.
The OPEN statement is
OPEN INPUT RECOIN-FILE
OUTPUT RECOOUT-FILE
Before the program is run, we set an environment variable RECOOUT1 as
export RECOOUT1=/absolute/path/to/file
This error only seems to occur when the system is "busy" - lots of other programs all running simultaneously, all beating up on the system, but none of which are *supposed* to be accessing /absolute/path/to/file. We've never seen the error occur when the system is "calm", only when it's being hammered.
I think the 181 is bogus, since we're not directly calling anything where we'd need to move around a "parameter". My gut tells me that this is likely one or more kernel parameters that need to be increased, but since I can't tell what the message is trying to communicate to us, I can't tell which parameter(s) need to be tweaked.
Does anyone have *any* idea where I could even start with this?
Thanks!
HP-Server-Literate since 1979
Solved! Go to Solution.
- Tags:
- COBOL
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-30-2008 07:03 AM
тАО10-30-2008 07:03 AM
SolutionI doubt if "ulimit" is involved, as you say it only happens when the system is loaded. Glance might give you some info if you can reproduce the behavoiur readily.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-30-2008 07:16 AM
тАО10-30-2008 07:16 AM
Re: Micro Focus COBOL Error 181 "Invalid parameter error" on OPEN
HP-Server-Literate since 1979
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-30-2008 07:16 AM
тАО10-30-2008 07:16 AM
Re: Micro Focus COBOL Error 181 "Invalid parameter error" on OPEN
I would guess that you might look at 'nfile' which limits the system-wide maximum number of open files. I doubt that 'maxfiles' is involved since this limits the number of open files on a *per process* basis. I suspect that you receive the error when your COBOL program begins execution and that the number of files and their opens are rather limited.
I assume, too, that value you assign to RECOOUT1 represents a valid absolute path. If not, this might be the root of the error.
If you suspect that 'nfile' has been met, monitor it with:
# sar -v
...or use 'glance's [t]able query.
Regards!
...JRF...
- Tags:
- nfile
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-30-2008 07:28 AM
тАО10-30-2008 07:28 AM
Re: Micro Focus COBOL Error 181 "Invalid parameter error" on OPEN
Thankee! As I replied to OldSchool, I suspected that it was one of the "file" kernel parms, but two years away from wearing my System Administrator hat, I couldn't remember the Likeliest Suspects. :-)
HP-Server-Literate since 1979
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-30-2008 02:39 PM
тАО10-30-2008 02:39 PM
Re: Micro Focus COBOL Error 181 "Invalid parameter error" on OPEN
If you could duplicate it, you could use tusc to trace system calls. Perhaps only the open one. The error return may help identify the problem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-31-2008 05:03 AM
тАО10-31-2008 05:03 AM
Re: Micro Focus COBOL Error 181 "Invalid parameter error" on OPEN
HP-Server-Literate since 1979
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-07-2008 10:23 AM
тАО11-07-2008 10:23 AM
Re: Micro Focus COBOL Error 181 "Invalid parameter error" on OPEN
HP-Server-Literate since 1979