Quick fix
The COBOL Editor, JCL Editor, and PL/I Editor provide suggested changes to resolve a warning or error annotation in the editor. To use the quick fix function, the Real-Time Syntax Checking preference must be enabled.
About this task
When a quick fix is available for a warning or error annotation,
a light bulb icon is added to the annotation icon. To display the
suggested fixes:
- Place the cursor over the highlighted text. A small pop-up window displays the suggested fixes.
- Place the cursor on the light bulb icon and left-click.
- Place the cursor on the highlighted text and press Ctrl+1.
- Place the cursor over the text, right-click, and select Quick Fix.
- Place the cursor on the highlighted text and click Quick Fix.
The table below shows the quick fixes that are available in the COBOL,
JCL, and PL/I editor. The CICS®/SQL/DLI column indicates the quick fixes that are supported for
EXEC CICS
, EXEC
SQL
, and EXEC DLI
statements in COBOL and PL/I source files when you use
the COBOL Editor and PL/I Editor.
Quick fix | COBOL | PL/I | JCL | CICS/SQL/DLI |
---|---|---|---|---|
Correct misspelled keywords | Yes | Yes | Yes | Yes |
Correct misspelled variable names | Yes | Yes | No | Yes |
Add qualifier to ambiguous variable name | Yes | Yes | No | No |
Correct misspelled function name | Yes | No | No | No |
Change copybook or include file resolution settings | Yes | Yes | Yes | Yes |
Add a paragraph to PERFORM statement | Yes | No | No | No |
Add a section to PERFORM statement | Yes | No | No | No |
Search for copybook or include files | Yes | Yes | Yes | Yes |