COBOL · File status code
What does File Status 38 mean in COBOL?
The program tried to OPEN a file that was previously closed WITH LOCK, which prevents it from being reopened for the rest of the run.
The program tried to OPEN a file that was previously closed WITH LOCK, which prevents it from being reopened for the rest of the run.
Remove the WITH LOCK phrase from the earlier CLOSE if the file needs to be reopened later in the same run, or restructure the program so the file is only closed once, at the end.