IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

What Actually PEEK Command does


IBM Mainframe Forums -> Compuware & Other Tools
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
vrakeshmbt

New User


Joined: 17 Aug 2005
Posts: 30

PostPosted: Tue May 22, 2007 11:11 am
Reply with quote

What Actually PEEK Command does? Can someone explain the same? And can we compare the same with KEEP Command?
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Tue May 22, 2007 1:04 pm
Reply with quote

Here are some previous topics on this subject:

ibmmainframes.com/viewtopic.php?t=5648
ibmmainframes.com/viewtopic.php?t=9711
ibmmainframes.com/viewtopic.php?t=13451
ibmmainframes.com/viewtopic.php?t=5140
Back to top
View user's profile Send private message
jkumarkb

New User


Joined: 28 Jun 2003
Posts: 7
Location: India

PostPosted: Tue May 22, 2007 1:20 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Compuware & Other Tools

 


Similar Topics
Topic Forum Replies
No new posts RACF - Rebuild SETROPTS command which... All Other Mainframe Topics 3
No new posts Routing command Address SDSF to other... TSO/ISPF 2
No new posts DTL - how to define key with stacked ... TSO/ISPF 3
No new posts LTJ command CA Products 4
No new posts Query on edit primary command CLIST & REXX 5
Search our Forums:

Back to Top