Need help with comparing 2 files using KEY Matches

Ask/Clarify the questions on EASYTRIEVE

Moderators: DikDude, Moderator Group

Post Reply
flgrad91
Member
Posts: 2
Joined: Mon May 23, 2011 10:18 pm

Need help with comparing 2 files using KEY Matches

Post by flgrad91 » Mon May 23, 2011 10:29 pm

I have 2 files of policy data: Day 1 and Day 2.

I need to compare the 2 files and determine if a record on day 2 has been added (A), deleted (D), changed (C), or remained the same (S). How would I do that using some kind of IF MATCHED logic?

DAY1
Status 1 1 A.
POLNUM 2 10 A
NAME 12 15 A

0000000191JOE
0000000201CRAIG
0000000301STEVE

DAY2
Status 1 1 A
POLNUM 2 10 A
NAME 12 15 A

0000000191ROBERT
0000000201CRAIG
0000000401MIKE

flgrad91
Member
Posts: 2
Joined: Mon May 23, 2011 10:18 pm

Post by flgrad91 » Thu Jun 02, 2011 12:41 am

Anyone?

Post Reply

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



Other References
Mainframe Tools and others