Setting language-specific maximum line length

You can set the maximum line length for COBOL, PL/I, HLASM, REXX, and JCL program files with IBM Z Open Editor so that a file that exceeds the maximum line length is not allowed to be saved.

If a file that exceeds the maximum line length is being saved, the following warning is displayed:

Truncation warning: You are trying to save a file that exceeds the maximum line length. You can configure the line length in Preferences. Saving the file will truncate all text after column 80. Do you want to continue?

If you choose Yes, all text after column 80 or a column number that was specified in the preference settings will be removed by the editor.

If you choose No, the file will not be saved. To continue saving the file, you can either change the maximum line length or remove the text after the column number that is specified in the preference settings.

To configure the maximum line length, add zopeneditor.language.maximumLineLength, such as zopeneditor.cobol.maximumLineLength, in settings.json, and provide a 0-based column number to your user or workspace settings. For information about adding user or workspace settings, see Accessing settings for IBM Z Open Editor.

Setting the COBOL maximum line length

To configure the COBOL maximum line length, add zopeneditor.cobol.maximumLineLength in settings.json and provide 0-based column number to your user or workspace settings:

"zopeneditor.cobol.maximumLineLength": 80

The default maximum line length setting for COBOL is 80.

Setting the PL/I maximum line length

To configure the PL/I maximum line length, add zopeneditor.pl1.maximumLineLength in settings.json and provide 0-based column number to your user or workspace settings:

"zopeneditor.pl1.maximumLineLength": 80

The default maximum line length setting for PL/I is 80.

Setting the HLASM maximum line length

To configure the HLASM maximum line length, add zopeneditor.hlasm.maximumLineLength in settings.json and provide 0-based column number to your user or workspace settings:

"zopeneditor.hlasm.maximumLineLength": 80

The default maximum line length setting for HLASM is 80.

Setting the REXX maximum line length

To configure the REXX maximum line length, add zopeneditor.rexx.maximumLineLength in settings.json and provide 0-based column number to your user or workspace settings:

"zopeneditor.rexx.maximumLineLength": 80

The default maximum line length setting for REXX is 80.

Setting the JCL maximum line length

To configure the JCL maximum line length, add zopeneditor.jcl.maximumLineLength in settings.json and provide 0-based column number to your user or workspace settings:

"zopeneditor.jcl.maximumLineLength": 80

The default maximum line length setting for JCL is 80.

Last Updated:
Contributors: PrasangAPrajapati, Bradley Knaysi