In this post, you’ll learn about the COBOL runtime Error Code 042 and the reason why you are receiving it
COBOL Error Code :
042
Reason for this Error in COBOL
Attempt to write on broken pipe (Recoverable) -One of the following has occurred: -Your program has created a process as a result of a DD_ logical filename mapping assignment (for example, the process might be a line printer spooler). The process was not created properly, or has ended prematurely. This error occurs when your program tries to write to the process. -Your application has terminated abnormally or prematurely, thus breaking the pipe. -You can trap the error status returned by the write operation, then open the file again.
Leave a Reply