COBOL Runtime Error Code – 004 Illegal file name (Recoverable) -A filen

In this post, you’ll learn about the COBOL runtime Error Code 004 and the reason why you are receiving it

COBOL Error Code :

004

Reason for this Error in COBOL

Illegal file name (Recoverable) -A filename contains an illegal character. This could be any character that is not part of the allowed character set or it could be the system-dependent delimiter, which on most systems is the space. -Try the file operation again using the correct filename.