IBM Z® Open Editor
Docs
News and Blogs
IBM Downloads
VS Code Marketplace
GitHub
Docs
News and Blogs
IBM Downloads
VS Code Marketplace
GitHub
  • Overview

    • Introduction
    • Updates and user feedback
  • Getting Started

    • Getting started with IBM Z Open Editor
    • Setting up integrations to interact with z/OS
    • Getting started with Zowe 3.0
  • Configuration

    • Setting preferences
    • Configuring your applications with ZAPP files
    • Setting property groups
    • Setting compiler options
    • Setting file associations
    • Setting language-specific tab stops and rulers
    • Enabling and disabling problems in IBM Z Open Editor
    • Enabling and disabling unreachable COBOL code warnings
    • Customizing the Outline view
    • Setting language-specific maximum line length
    • EBCDIC code pages and mappings files
    • Experimental: Formatting COBOL source code
  • Tutorials

    • Tutorial overview
    • Exploring the user interface
    • Exploring the sample files
    • COBOL editing tutorial
    • COBOL, PL/I Preprocessor tutorial
    • HLASM editing tutorial
    • REXX editing tutorial
    • Managing z/OS resources with IBM RSE API Plug-in for Zowe CLI tutorial
    • Submitting JCL to compile, link, and run jobs tutorial
  • Editing program files

    • Language References
    • Making COBOL and PL/I code changes
    • Making High Level Assembler code changes
    • Making REXX code changes
    • Making JCL code changes
    • Using and managing code snippets
    • Using the integrated Git
    • Searching for COBOL, PL/I, HLASM, and REXX components
  • Interacting with z/OS using Zowe

    • Interacting with z/OS
    • Creating a configuration profile in Zowe Explorer v3.0.0
    • Migrating your old Zowe yaml profiles for Zowe v3.0
    • Supported methods of authentication for z/OS using Zowe
    • Sharing team configuration files
    • Connecting to z/OS with Zowe Explorer walk through
    • Using the Zowe Explorer views
    • Using Zowe profiles in Z Open Editor
    • Connecting to z/OS using Zowe CLI walk through
    • Using command line to interact with z/OS
    • Interact with RSE Common Properties
  • Advanced Capabilities

    • Overview
    • Activating advanced capabilities
    • Launching a 3270 emulator from Zowe Explorer
    • z/OS Resources Table
    • Data Elements View
    • Program Control Flow Browser
    • Data Flow Browser
    • Preprocessor support
    • Custom Macros for HLASM
    • Language Detection
    • Linting with IBM ZCodeScan
    • User build with IBM Dependency Based Build (DBB)
    • Agent Mode
    • Line Hex Editor
  • Cloud-based Editing

    • Overview to using Cloud and Browser-based platforms
    • Try Z Open Editor in the Red Hat Developer Sandbox
    • Configuring Red Hat OpenShift Dev Spaces
    • Managing Developer Workspaces
    • Managing secrets
    • Create and use custom images
    • Migrating from IBM Wazi for Dev Spaces
    • Using Z Open Editor on GitHub Codespaces
    • Using Z® Open Editor with Dev Containers
  • Troubleshooting

    • Known issues and limitations
    • Troubleshooting using log files
    • Troubleshooting for User Build
    • Uninstalling CLI plugins and VS Code extensions
  • Reference

    • IBM RSE API Plug-in for Zowe CLI commands
    • IBM RSE API Plug-in for Zowe CLI as nodejs SDK package
    • IBM RSE API Plug-in for Zowe CLI as nodejs SDK reference
    • Example Zowe configuation setups
    • IBM Z Open Editor MCP Tools
    • Accessibility and Keyboard Shortcuts
    • settings.json properties
    • Message ID Reference
    • Other Visual Studio Code extensions
  • Legal information

    • Notices
    • Trademarks
    • Privacy policy considerations

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: 8/12/21, 6:55 AM
Contributors: PrasangAPrajapati, Bradley Knaysi
Prev
Customizing the Outline view
Next
EBCDIC code pages and mappings files