Wednesday 21 January 2015

Pin It

Widgets

Error: syntax error, unexpected "end of file" in COBOL


Key Point:
Each line should end with CRLF (Carriage Return + Line Feed). It means each line should end with '\r\n'.

Solution:
To get rid of the error, copy-paste the code in Notepad++ and do the following steps:

1) Replace '\n' with '' (blank).
2) Replace '\r' with '\r\n'
3) Go to the last line and hit Enter.

No comments: