View previous topic :: View next topic |
Author |
Message |
sumithar Beginner
Joined: 22 Sep 2006 Posts: 84 Topics: 29
|
Posted: Tue Dec 13, 2011 10:36 am Post subject: ISPF Editor Compare Next Change |
|
|
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 |
|
|
papadi Supermod
Joined: 20 Oct 2009 Posts: 594 Topics: 1
|
Posted: Tue Dec 13, 2011 12:41 pm Post subject: |
|
|
Try SUPERC and see if this provides more what you want. _________________ All the best,
di |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
Posted: Tue Dec 13, 2011 12:50 pm Post subject: |
|
|
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 |
|
|
stefan Beginner
Joined: 20 Nov 2003 Posts: 41 Topics: 2 Location: Germany
|
Posted: Wed Dec 14, 2011 2:32 am Post subject: |
|
|
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 |
|
|
sumithar Beginner
Joined: 22 Sep 2006 Posts: 84 Topics: 29
|
Posted: Wed Dec 14, 2011 9:34 am Post subject: |
|
|
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 |
|
Back to top |
|
|
semigeezer Supermod
Joined: 03 Jan 2003 Posts: 1014 Topics: 13 Location: Atlantis
|
Posted: Wed Dec 14, 2011 10:18 pm Post subject: |
|
|
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 |
|
|
sumithar Beginner
Joined: 22 Sep 2006 Posts: 84 Topics: 29
|
Posted: Fri Dec 16, 2011 6:07 pm Post subject: |
|
|
Yes, I've created some PFKey shortcuts. I'll check out your FINDX macro, thanks for the link |
|
Back to top |
|
|
sumithar Beginner
Joined: 22 Sep 2006 Posts: 84 Topics: 29
|
Posted: Mon Dec 19, 2011 5:18 pm Post subject: |
|
|
Thanks Doug, FINDX is very handy! |
|
Back to top |
|
|
|
|