Hi all,
I need to know the best way to compare two PS files for my regression testing of batch files. Here is my criteria
1. Both the files are not sorted.
2. The files are around 1500 rec length fixed or variable
3. I need the result to show where the actual difference is w.r.t fields, inserts, deletes, matches and unmatches.
Please suggest me the best way of achieving this. I tried IEBCOMPR with WORD option, SUPERCC. I need to know other good options esp the batch means of compare. I explored many posts here and would be thankful to anyone if they suggest the best approach!
Compare two PS files
Moderators: Frank Yaeger, DikDude, Moderator Group
You do NOT want to sort anything! If the files are meant to match exactly then sorting them could hide a problem. The simplest way would be to use SUPERC. If they match then you do not have the problem of the limited display length of SUPERC. If they do not match then you can SUPERC them again (several times) restricting the columns to be matched.
You could also try the JOINKEYS facility of your sort product - the key would be the entire record length - and write out unmatching records.
Possibly use both - SUPERC to see if any differences and JOINKEYS to get the non-matching records if SUPERC finds differences.
You could also try the JOINKEYS facility of your sort product - the key would be the entire record length - and write out unmatching records.
Possibly use both - SUPERC to see if any differences and JOINKEYS to get the non-matching records if SUPERC finds differences.
Regards
Nic
Nic
FREE TUTORIALS
Tutorials
Free tutorials from mainframegurukul
- JCL Tutorial
Covers all important JCL concepts. - Cobol Tutorial
This tutorials covers all Cobol Topics from STRING to COMP-3. - DB2 Tutorial
DB2 Tutorial focuses on DB2 COBOL Programming. - SORT Tutorial
This Tutorial covers all important aspects of DFSORT with examples - CICS Tutorial
This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions
- Cobol Interview Questions
50+ Interview Questions - JCL Interview Questions
50+ Interview Questions - DB2 Interview Questions
100+ Interview Questions - CICS Interview Questions
70+ Interview Questions - VSAM Interview Questions
27 Interview Questions
Other References
Mainframe Tools and others
- XPEDITER Reference
Explains how we can debug a program - FILEAID Reference
Explains how to browse , edit and delete datasets - Change Man Reference
Quick Start tutorial on Changeman - Abend Reference
Important Abend codes explained - FaceBook Page
MainframeGurukul FaceBook Page - LinkedIn Page
MainframeGurkul Linkedin Page