IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

convert SUPERC compare report to side-by-side report


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
jzhardy

Active User


Joined: 31 Oct 2006
Posts: 131
Location: brisbane

PostPosted: Fri Feb 21, 2020 8:55 am
Reply with quote

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
View user's profile Send private message
jzhardy

Active User


Joined: 31 Oct 2006
Posts: 131
Location: brisbane

PostPosted: Fri Feb 21, 2020 8:58 am
Reply with quote

HTML tags would be nice. For an example of what I mean, have a look at :

www.araxis.com/merge/documentation-windows/en/example-reports/FolderComparisonReport2Way_files/FileComparisonReport9
Back to top
View user's profile Send private message
steve-myers

Active Member


Joined: 30 Nov 2013
Posts: 917
Location: The Universe

PostPosted: Fri Feb 21, 2020 8:39 pm
Reply with quote

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
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2546
Location: Silicon Valley

PostPosted: Sat Feb 22, 2020 5:19 am
Reply with quote

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
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2546
Location: Silicon Valley

PostPosted: Sat Feb 22, 2020 5:34 am
Reply with quote

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
View user's profile Send private message
jzhardy

Active User


Joined: 31 Oct 2006
Posts: 131
Location: brisbane

PostPosted: Sat Feb 22, 2020 6:48 am
Reply with quote

hi all, thanks for the tips! I'll check out the WIDE option as above.

I love this forum!
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Need to convert date format DFSORT/ICETOOL 20
No new posts Keep leading zero(s) after convert fl... SYNCSORT 7
No new posts Need help on formatting a report DFSORT/ICETOOL 14
No new posts Creating Report using SORT DFSORT/ICETOOL 7
Search our Forums:

Back to Top