In this post, you’ll learn about the COBOL runtime Error Code 138 and the reason why you are receiving it
COBOL Error Code :
138
Reason for this Error in COBOL
File closed with lock – cannot be opened (Recoverable) -You are trying to open a file which you previously closed with lock, which violates one of the general rules of COBOL programming. -You cannot open the relevant file. As this error implies that your program logic contains a mistake, you might want to close any remaining open files, execute a STOP RUN statement and recode.
Leave a Reply