COBOL, PL/I, and JCL content assist is available for syntax
elements of each language and for CICS® variables
and EXEC SQL statements. For example, built-in functions and
subroutine calls for the PL/I language are available as completion
proposals, with the correct syntax. Where possible, user-defined labels
and variables are included in the list of suggested options.
About this task
In addition to content assist for COBOL and PL/I code,
the System z® LPEX Editor,
COBOL Editor, and PL/I Editor provide content assist for CICS and SQL variables that are in EXEC
CICS and EXEC SQL blocks. The editors display
variable names and their declarations. Hovering over the data item
entries shows the data structure of the item.
Content assist
cannot provide any proposals for a syntax error until there is enough
valid syntax to suggest options.
Limitation: In the System z LPEX
Editor, opening and closing the content assist window without changing
the cursor location toggles the window content.
Procedure
- To use content assist, open a COBOL, PL/I, or JCL file
in the System z LPEX Editor,
COBOL Editor, PL/I Editor, or JCL Editor. As you are typing the code,
press Ctrl+Spacebar and select from among the options that are displayed
to complete the code you are typing.
- You can toggle the content assist window between the default
pane and template pane by pressing Ctrl+Spacebar again. If you close
the content assist window and open it again without changing the cursor
location, it reopens on the same pane. For more information about
templates, see the related topics.