Skip to main content

Hello friends,

While updating a few programs to use OPEN EXCLUSIVE, i've seen that sometimes (not always) the File Status 32 will pop up and the program will not execute.

Now i've elected to ignore 32, and the program runned without a flaw.

This is what i've come accross about FS 32:

"Too many Indexed files opened. This can also happen when a sequential file is open for input and an attempt is made to open the same file for output.(Run Time System (RTS) message by Micro Focus)."

1 - Should i really ignore FS 32?

2 - Is a simple CLOSE statement enough for a file with OPEN EXCLUSIVE? If not, it would make sense since the same files were opened prior in another program as input, and in this one in output. How should i proceed to close them?


#NetExpress5.0
#COBOL

Hello friends,

While updating a few programs to use OPEN EXCLUSIVE, i've seen that sometimes (not always) the File Status 32 will pop up and the program will not execute.

Now i've elected to ignore 32, and the program runned without a flaw.

This is what i've come accross about FS 32:

"Too many Indexed files opened. This can also happen when a sequential file is open for input and an attempt is made to open the same file for output.(Run Time System (RTS) message by Micro Focus)."

1 - Should i really ignore FS 32?

2 - Is a simple CLOSE statement enough for a file with OPEN EXCLUSIVE? If not, it would make sense since the same files were opened prior in another program as input, and in this one in output. How should i proceed to close them?


#NetExpress5.0
#COBOL

File Status 32 is not a valid file status value.

The description that you show is for a file status 9/032.

Is this the error that you are seeing?

The addition of LOCK MODE EXCLUSIVE should in no way affect the number of files that are being opened so I am not sure why you would get this error.

What is the full value of the two bytes returned in the file status data item?

Thanks.


Hello friends,

While updating a few programs to use OPEN EXCLUSIVE, i've seen that sometimes (not always) the File Status 32 will pop up and the program will not execute.

Now i've elected to ignore 32, and the program runned without a flaw.

This is what i've come accross about FS 32:

"Too many Indexed files opened. This can also happen when a sequential file is open for input and an attempt is made to open the same file for output.(Run Time System (RTS) message by Micro Focus)."

1 - Should i really ignore FS 32?

2 - Is a simple CLOSE statement enough for a file with OPEN EXCLUSIVE? If not, it would make sense since the same files were opened prior in another program as input, and in this one in output. How should i proceed to close them?


#NetExpress5.0
#COBOL

Thanks for the help, in the end it was caused by lack of file status declaration in said program. That and lack of coffee ;)


Hello friends,

While updating a few programs to use OPEN EXCLUSIVE, i've seen that sometimes (not always) the File Status 32 will pop up and the program will not execute.

Now i've elected to ignore 32, and the program runned without a flaw.

This is what i've come accross about FS 32:

"Too many Indexed files opened. This can also happen when a sequential file is open for input and an attempt is made to open the same file for output.(Run Time System (RTS) message by Micro Focus)."

1 - Should i really ignore FS 32?

2 - Is a simple CLOSE statement enough for a file with OPEN EXCLUSIVE? If not, it would make sense since the same files were opened prior in another program as input, and in this one in output. How should i proceed to close them?


#NetExpress5.0
#COBOL

Thanks for the help, in the end it was caused by lack of file status declaration in said program. That and lack of coffee ;)


Hello friends,

While updating a few programs to use OPEN EXCLUSIVE, i've seen that sometimes (not always) the File Status 32 will pop up and the program will not execute.

Now i've elected to ignore 32, and the program runned without a flaw.

This is what i've come accross about FS 32:

"Too many Indexed files opened. This can also happen when a sequential file is open for input and an attempt is made to open the same file for output.(Run Time System (RTS) message by Micro Focus)."

1 - Should i really ignore FS 32?

2 - Is a simple CLOSE statement enough for a file with OPEN EXCLUSIVE? If not, it would make sense since the same files were opened prior in another program as input, and in this one in output. How should i proceed to close them?


#NetExpress5.0
#COBOL

Thanks for the help, in the end it was caused by lack of file status declaration in said program. That and lack of coffee ;)