Formatting PL/I code elements

Use the Formatter preference page to specify preferences for formatting code in the editor. The Preview section on the right shows the effect of the preferences specified.

About this task

Note: In product versions before v14.1.6, these preferences are on three tabbed pages labeled Indentation, Capitalization, and Line length.

Procedure

  1. In the Preferences window, click PL/I > Editor > Formatter. The Formatter page opens.
  2. On the Formatter page, expand a section to see available options.
    1. Indentation
      Restriction: Indentation formatting is not available when you edit EBCDIC DBCS code.
      This section contains indentation options:
      Enable indentation
      Select this option to specify indentation options.
      Left margin
      Type an integer 2-10 to define the last column of the left margin.
      Indent length
      Type the number of indentation spaces for each level language element when nested. Valid values are 0-10.
      Indent data hierarchies
      Select this option to indicate that data structures are indented. The Data hierarchy indent length defines the number of spaces the structures are indented. Valid values are 0-10.
      Indent EXEC blocks
      Select this option to indicate that EXEC statements are indented.
    2. Capitalization

      This section sets capitalization options for some language elements in the editor:

      • Upper
      • Lower
      • Mixed, which is a mix of uppercase and lowercase characters, for example: FirstLast or firstLAST.
      • None

      The default value for the reserved word, user-defined word, function, date format, and compiler directive language elements is uppercase. The default value for comments is none.

    3. Line Length

      This section sets the right column to use when aligning code.

      • Indent up to Margin R
      • Indent past Margin R
      • Do not indent
  3. Click Apply to save your changes.