MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

ISPF Editor Compare Next Change

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
sumithar
Beginner


Joined: 22 Sep 2006
Posts: 84
Topics: 29

PostPosted: Tue Dec 13, 2011 10:36 am    Post subject: ISPF Editor Compare Next Change Reply with quote

When I use the Compare command in an ISPF Editor session to compare my current member to the production version, it shows the differences by either putting a series of ===== or a label typically beginning with .OAAA.
Code:
======            MOVE DFH
 .OAAAN            MOVE DFH
 .OAAAO            MOVE WS-

Is there a way to go to the next difference? I could do a locate on .OAAAn where 'n' is the next letter of the alphabet
So here, i could do L .OAAAD, but this is pretty painful after a while! Plus it doesn't help when it is ======
Code:
001400
.OAAAA
.OAAAB
.OAAAC
001800
Back to top
View user's profile Send private message
papadi
Supermod


Joined: 20 Oct 2009
Posts: 594
Topics: 1

PostPosted: Tue Dec 13, 2011 12:41 pm    Post subject: Reply with quote

Try SUPERC and see if this provides more what you want.
_________________
All the best,

di
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Tue Dec 13, 2011 12:50 pm    Post subject: Reply with quote

sumithar,

If pressed PF1 , you would have found this about Compare command

Code:

   COMPARE dataset X                                                         
                    Compares the data to the specified data set, and excludes
                    matching lines SuperC listing in:                         
                    'USERID.ISPFEDIT.COMPARE.LIST'                           
                                                                             
   COMPARE dataset X SAVE                                                     
                    Compares the data to the specified data set, excludes     
                    matching lines and saves the SuperC listing in:           
                    'USERID.ISPFEDIT.COMPARE.LIST'                           
                                                   
Back to top
View user's profile Send private message Send e-mail Visit poster's website
stefan
Beginner


Joined: 20 Nov 2003
Posts: 41
Topics: 2
Location: Germany

PostPosted: Wed Dec 14, 2011 2:32 am    Post subject: Reply with quote

Use the LOCATE command
Code:
Command ===> loc next special     displays the next special line (cols, prof, tabs, mask, bnds, note).
Command ===> loc prev x .a .b     displays the previous excluded line in the range from label ".A" to label ".B".
Command ===> loc first err        displays the first line that is flagged ==ERR> .
Command ===> loc last chg         displays the last line that is flagged ==CHG> .
Command ===> loc cmd .a .b        displays the next pending line command in the range from label ".A" to label ".B".
Command ===> loc label            displays the next line that contains a label.

_________________
Stefan
There are 10 types of people in the world: Those who understand binary, and those who don't.
Back to top
View user's profile Send private message
sumithar
Beginner


Joined: 22 Sep 2006
Posts: 84
Topics: 29

PostPosted: Wed Dec 14, 2011 9:34 am    Post subject: Reply with quote

Thanks Stefan- that's what I was looking for.

Kolusu- I did look at the manual and saw those options but I like to be able to see the changes in context.

Of course nothing beats downloading the code to your PC and using Beyond Compare or WinMerget Wink
Back to top
View user's profile Send private message
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Wed Dec 14, 2011 10:18 pm    Post subject: Reply with quote

LOC NEXT|PREV SPECIAL, especially assigned to a PF key is useful, but I find the exclude option easier...
COMP NEXT X
or
COMP some-dataset-or-member X

You can change the number of lines that are shown with COMPARE with no operands. You can also use COMPARE X with no actual compare if you preset the labels yourself as in my FINDX macro.
_________________
New members are encouraged to read the How To Ask Questions The Smart Way FAQ at http://www.catb.org/~esr/faqs/smart-questions.html.
Back to top
View user's profile Send private message Visit poster's website
sumithar
Beginner


Joined: 22 Sep 2006
Posts: 84
Topics: 29

PostPosted: Fri Dec 16, 2011 6:07 pm    Post subject: Reply with quote

Yes, I've created some PFKey shortcuts. I'll check out your FINDX macro, thanks for the link
Back to top
View user's profile Send private message
sumithar
Beginner


Joined: 22 Sep 2006
Posts: 84
Topics: 29

PostPosted: Mon Dec 19, 2011 5:18 pm    Post subject: Reply with quote

Thanks Doug, FINDX is very handy!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group