We use KEEP to display data contents and PEEK to look at data definition and contents.
Peek is used to display the value of the variable declared in the data division.
syntax - P (PEEK) < VARIABLE NAME > and press Enter.
The screen automatically scrolls to the DATA DIVISION statement where the VARIABLE defined, inserts a P in column 9, and displays the occurrence and value of that variable.
If you want to see a variable value while excuting, use KEEP.
syntax - K (KEEP) < VARIABLE NAME > and press Enter.
It shows the variable name and changing value while you debugging in the top part of screen.