You can convert fixed-form ILE RPG code into free-form ILE RPG
code (C-specifications) in the Remote Systems LPEX editor. Free-form code
is often easier to work with.
About this task
With your ILE RPG source open in the Remote Systems LPEX editor,
click from the workbench menu.
Tip: You
can use from the workbench menu, or press Ctrl+Z, to convert back to
fixed-form.
Example
If you only want to convert a section of your source (and not the
entire file), select the source you want to convert, right-click and select
Convert
Selection To Free Form. In this instance, the selected source is replaced
with the converted source.
What to do next
Note: When you convert your source to a free format, the default
preference for automatic indenting determines how your source is indented.
To change this setting:
- From the Remote Systems view, click the drop-down menu
and select .
- In the preferences window, expand i Parsers and click ILE RPG. In the preferences
area, verify that Automatic Indent is checked, and
adjust the value in the Blanks (1-20) field.