View previous topic :: View next topic
|
Author |
Message |
vrakeshmbt
New User
Joined: 17 Aug 2005 Posts: 30
|
|
|
|
What Actually PEEK Command does? Can someone explain the same? And can we compare the same with KEEP Command? |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
Back to top |
|
|
jkumarkb
New User
Joined: 28 Jun 2003 Posts: 7 Location: India
|
|
|
|
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.
Regards,
Jay |
|
Back to top |
|
|
|