Portal | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
convert SUPERC compare report to side-by-side report

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
jzhardy

New User


Joined: 31 Oct 2006
Posts: 82
Location: brisbane

PostPosted: Fri Feb 21, 2020 8:55 am    Post subject: convert SUPERC compare report to side-by-side report
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

New User


Joined: 31 Oct 2006
Posts: 82
Location: brisbane

PostPosted: Fri Feb 21, 2020 8:58 am    Post subject: forgot to add
Reply with quote

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

https://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: 859
Location: The Universe

PostPosted: Fri Feb 21, 2020 8:39 pm    Post subject:
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

Senior Member


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

PostPosted: Sat Feb 22, 2020 5:19 am    Post subject: Reply to: convert SUPERC compare report to side-by-side report
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

Senior Member


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

PostPosted: Sat Feb 22, 2020 5:34 am    Post subject: Reply to: convert SUPERC compare report to side-by-side report
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

New User


Joined: 31 Oct 2006
Posts: 82
Location: brisbane

PostPosted: Sat Feb 22, 2020 6:48 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SARBCH REPORT DD writing error kris_madras CA Products 1 Tue Sep 15, 2020 4:22 pm
No new posts Unload Report in ARCHIVE from CA-Disp... vpuerto CA Products 0 Sat Aug 29, 2020 7:31 am
No new posts Compare two character variables Head ... Harold Barnes CLIST & REXX 3 Fri Aug 28, 2020 12:38 am
No new posts To convert numeric to Packed Decimal vinu78 DFSORT/ICETOOL 9 Fri Jul 31, 2020 7:14 pm
No new posts how to convert Hex String t char hex Martylin PL/I & Assembler 6 Fri Jun 05, 2020 7:45 pm

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