The presence of spaces at the end of the code line, especially after column 80, can cause compilation errors in some COBOL compilers. Also, the presence of spaces after Exec Control Language (ECL) statement can cause errors.
To trim the trailing spaces at the end of lines of code or after column 80, perform the following steps:
Click
Window > Preferences.
The Preferences dialog box is displayed.
Expand
COBOL and click Editor.
The Editor setting options are displayed in the right pane.
Select Trim trailing spaces on Save.
Click OK.
Open a COBOL program in the COBOL editor.
Make
the required changes to the program and press CTRL+S to save
the program.
The spaces or tabs at the end of the lines of code are removed.
To trim the trailing spaces after ECL statements, perform the following steps:
Right-click
the OS 2200 project.
The context menu appears.
From the context menu, click Properties > OS 2200 Project Properties.
Enter
the build-stream in the text areas of Build Stream and OS
2200 Debug Build tabs and click OK.
Any spaces or tabs at the end of the ECL statements are
removed automatically and any ECL statement continuing after column
80 is wrapped to the next line.