View previous topic :: View next topic
|
Author |
Message |
jzhardy
Active User
Joined: 31 Oct 2006 Posts: 131 Location: brisbane
|
|
|
|
hi,
Does anyone have sample REXX code to present normal difference report (option 3.12) as a side-by-side report
(I can do it, but hoping not to have to reinvent the wheel)
eg, suppose you have :
abc
I - xyz
D - qwe
UO - uuu
UN - vvv
then i would want to see
abc abc
xyz qwe
vvv uuu
so, LHS is new file, RHS is old file.
Hope this makes sense |
|
Back to top |
|
|
jzhardy
Active User
Joined: 31 Oct 2006 Posts: 131 Location: brisbane
|
|
Back to top |
|
|
steve-myers
Active Member
Joined: 30 Nov 2013 Posts: 917 Location: The Universe
|
|
|
|
Not enough bytes in the "standard" output line. You would need 160 + carriage control + spacing. The "standard" output line is 133 bytes. The other problem is you have to highlight the in line differences, which makes the problem more complex.
Of course you could write some Rexx or a Cobol program to transform the SuperC report to something you would like. Me, I'm not going to bother.
FWIW, been there, done that, though not in the SuperC context. |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2546 Location: Silicon Valley
|
|
|
|
I recommend using the ISPF editor with the COMPARE command. For example, edit the new file then issue COMPARE 'my.old.dsn' X
It will show the changes with the lines only in the new file in one color and the lines only in the old file as info lines (which you can make part of the data set using the MD line command).
If you just issue the COMPARE command, you get a control panel.
I recommend this instead of a side-by-side listing because it is easier to incorporate any missing lines or delete extra lines. |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2546 Location: Silicon Valley
|
|
|
|
The ISPF User's Guide Volume 2, table 24, says you can specify WIDE as a line compare option to get a side by side listing.
Quote: |
WIDE
Wide side-by-side listing. Creates a 202/203 variable-length listing
file with 80 columns from each source file. Inserts and deletes are
flagged and appear side-by-side in the listing output. For an
example of a WIDE side-by-side listing, see Figure 261 on page 510.
Valid for LINE compare type.
|
|
|
Back to top |
|
|
jzhardy
Active User
Joined: 31 Oct 2006 Posts: 131 Location: brisbane
|
|
|
|
hi all, thanks for the tips! I'll check out the WIDE option as above.
I love this forum! |
|
Back to top |
|
|
|