LIST CURSOR command (full-screen mode)
Provides a cursor controlled method for displaying variables, structures, and arrays. It is most useful when assigned to a PF key.
Usage notes
- Cursor pointing can be used by typing the
LIST CURSORcommand on the command line and moving the cursor to a variable in the Source window before pressing Enter, or by moving the cursor and pressing a PF key with theLIST CURSORcommand assigned to it. - When you use the
LIST CURSORcommand for a variable that is located by the cursor position, the variable's name nor its full qualification cannot be split across different lines of the source listing. - If the
DATAoption of thePLAYBACK ENABLEcommand is in effect for the current compile unit, theLIST CURSORcommand can be used while you replay recorded statements by using thePLAYBACKcommands. - For optimized COBOL programs, you cannot use the
LIST CURSORcommand to display the value of variables discarded by the optimizer.
Examples
- Display the value of the variable at the current cursor position.
LIST CURSOR - A COBOL program has a statement of the form:
You cannot use theMOVE a TO b OF cLIST CURSORon the variablebbecause part of its qualification (OF c) is on the next line.
