Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
What Actually PEEK Command does

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Compuware & Other Tools
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    Post subject: What Actually PEEK Command does
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

Moderator Team Head


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

PostPosted: Tue May 22, 2007 1:04 pm    Post subject: Re: What Actually PEEK Command does
Reply with quote

Here are some previous topics on this subject:

http://ibmmainframes.com/viewtopic.php?t=5648
http://ibmmainframes.com/viewtopic.php?t=9711
http://ibmmainframes.com/viewtopic.php?t=13451
http://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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> Compuware & Other Tools All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts MQ command in option 6 of ISPF! Vignesh Sid All Other Mainframe Topics 3 Tue Sep 26, 2017 6:01 pm
No new posts How to change a string containing the... chong.zhou TSO/ISPF 6 Tue Aug 29, 2017 4:54 pm
No new posts Failure after DIR command Hank Watson All Other Mainframe Topics 2 Tue Aug 29, 2017 3:14 am
No new posts Command to find TMEMBER name for a TPIPE Siva NKK Kothamasu IMS DB/DC 0 Wed Aug 16, 2017 6:08 pm
This topic is locked: you cannot edit posts or make replies. rexx to create a tso command Bharath Vikraman CLIST & REXX 1 Tue Aug 08, 2017 3:32 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us