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
 
COMPARE command

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
sivatechdrive

Active User


Joined: 17 Oct 2004
Posts: 190
Location: hyderabad

PostPosted: Fri Sep 16, 2016 4:31 pm    Post subject: COMPARE command
Reply with quote

Hi,

I used the compare command to compare programs in 2 different libraries.
The newly inserted lines as highlighted with ===== at the first 1-6 columns.
i what to find all the newly inserted lines. i tried using Find '====' but it is of no use.
COuld you please let me know how to find all the new lines .

Code:
VIEW       KCP1NCS.LIB.SOURCE(U3O02005) - 01.99            Columns 00001 00072
Command ===>                                                  Scroll ===> CSR 
000068 ISS003*    (ALT-NA-END-DATE) IS NOT EQUAL TO ZERO.                   * 
====== DK0237* 06/14/2016 - RUCHI SINHA - DK0237 NEW CUSTOMER INFORMATION   * 
====== DK0237*  - CHANGED THE REFERENCE OF RES-DOC-ID-NBR TO ALT-RES-DOC-ID-* 
====== DK0237*    NBR.                                                      * 
000069 DK0258*                                                              *

Thanks
Siva

12 years a member and you didn't use the code tags? Coded for you THIS time. Next time...
Back to top
View user's profile Send private message

sergeyken

Active User


Joined: 29 Apr 2008
Posts: 214
Location: Maryland

PostPosted: Fri Sep 16, 2016 5:31 pm    Post subject:
Reply with quote

You fully misunderstand the screen contents.

1) The lines marked as '========' (and highlighted in white) are those lines MISSING in the new version, but presented in the old version.

2) The lines INSERTED into new version are marked with ".OAAAA" etc., (and highlighted in blue).

3) You can use the command COMP oldversion X - option X used to exclude matching lines from view; then you will see only MISSING and INSERTED lines on your screen

4) The CHANGED lines are presented as pair(s) of MISSING+INSERTED lines highlighted in different colors (white, and blue), probably as groups of sequential updated lines.

5) After significant changes the COMP command is not able to synchronize matching lines. In that case the whole mess of MISSING + INSERTED lines is displayed.
Back to top
View user's profile Send private message
prino

Senior Member


Joined: 07 Feb 2009
Posts: 1068
Location: Oostende, Belgium

PostPosted: Fri Sep 16, 2016 8:01 pm    Post subject:
Reply with quote

sergeyken wrote:
You fully misunderstand the screen contents.

And you are blabbering away without actually answering the question.

Use the command
Code:
L SPE

to find non-data lines in the ISPF editor.
Back to top
View user's profile Send private message
Rohit Umarjikar

Senior Member


Joined: 21 Sep 2010
Posts: 1819
Location: NY,USA

PostPosted: Fri Sep 16, 2016 9:29 pm    Post subject:
Reply with quote

or you can do EXCLUDE = 0 , which gives you only differences and no need of L SPE for each item.
Code:
Display options:                     
     Lines displayed                   
     with EXCLUDE  . . .    0      (0 - 12)
     Label Prefix  . . .    A     (A - Y)    
Back to top
View user's profile Send private message
sergeyken

Active User


Joined: 29 Apr 2008
Posts: 214
Location: Maryland

PostPosted: Sat Sep 17, 2016 1:14 am    Post subject:
Reply with quote

prino wrote:
sergeyken wrote:
You fully misunderstand the screen contents.

And you are blabbering away without actually answering the question.

Use the command
Code:
L SPE

to find non-data lines in the ISPF editor.


1) "non-data lines" reflect MISSING lines, versus INSERTED lines requested by the author

2) Command L SPE just moves the cursor to the next MISSING line which is (a) not what is needed, (b) doesn't help to display "only inserted lines" as requested by the author

3) Unlike command FIND, the command L SPE needs to be re-typed again and again in the command line in order to jump to each next occurrence of "non-data line"

4) I'm really in doubt who of us is actually blabbering...
Back to top
View user's profile Send private message
John Del

New User


Joined: 27 Apr 2012
Posts: 30
Location: NY

PostPosted: Sat Sep 17, 2016 1:39 am    Post subject:
Reply with quote

Quote:
3) Unlike command FIND, the command L SPE needs to be re-typed again and again in the command line in order to jump to each next occurrence of "non-data line"


That's not entirely true.

Prefix the "L" command with the ampere sign "&" and then you would only need to press enter to advance to the next occurrence.

&L SPE
Back to top
View user's profile Send private message
prino

Senior Member


Joined: 07 Feb 2009
Posts: 1068
Location: Oostende, Belgium

PostPosted: Sat Sep 17, 2016 1:43 am    Post subject:
Reply with quote

sergeyken wrote:
prino wrote:
sergeyken wrote:
You fully misunderstand the screen contents.

And you are blabbering away without actually answering the question.

Use the command
Code:
L SPE

to find non-data lines in the ISPF editor.


1) "non-data lines" reflect MISSING lines, versus INSERTED lines requested by the author.

The TS tells us that the "======" are INSERTED lines, this implies that he's doing a REVERSE compare!

sergeyken wrote:
2) Command L SPE just moves the cursor to the next MISSING line which is (a) not what is needed, (b) doesn't help to display "only inserted lines" as requested by the author

The TS tells us that the "======" are INSERTED lines, this implies that he's doing a REVERSE compare!

sergeyken wrote:
3) Unlike command FIND, the command L SPE needs to be re-typed again and again in the command line in order to jump to each next occurrence of "non-data line"

Obviously you've never prefixed a command with "&" and Enter will be your uncle!

sergeyken wrote:
4) I'm really in doubt who of us is actually blabbering...

I'm not!
Back to top
View user's profile Send private message
sergeyken

Active User


Joined: 29 Apr 2008
Posts: 214
Location: Maryland

PostPosted: Sat Sep 17, 2016 2:30 am    Post subject:
Reply with quote

sergeyken wrote:
sergeyken wrote:
4) I'm really in doubt who of us is actually blabbering...

I'm not!

"Thrice blessed who believes; believing warms the heart!"(C)
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 -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Compare VSAM files using DFSORT pshongal DFSORT/ICETOOL 5 Thu Nov 23, 2017 10:24 am
No new posts OUTREC with ALter Command scorp_rahul23 DFSORT/ICETOOL 1 Wed Nov 22, 2017 3:10 pm
No new posts Compare and COPY using DFSORT pshongal DFSORT/ICETOOL 3 Fri Nov 17, 2017 9:49 am
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 File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am

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