Can some one please help me out?
Below is my requirement.
Senario 1:
If field 1,2,3 of transaction file is equals to master file,
then respective recorded in master file has to write into output data set
Transaction file
----+----1----+
AAAA1 BBB1 CCC1
AAAA2 BBB2 CCC2
AAAA3 BBB3 CCC3
Master File
----+----1----+----2----+
AAAA1 BBB1 CCC1 XXX1 YYY1
AAAA2 BBB2 CCC2 XXX2 YYY2
AAAA3 BBB3 CCC3 XXX3 YYY3
Expected Output:
----+----1----+----2----+
AAAA1 BBB1 CCC1 XXX1 YYY1
AAAA2 BBB2 CCC2 XXX2 YYY2
AAAA3 BBB3 CCC3 XXX3 YYY3
=======================================
Senario 2:
If field 1 of transaction file is NOT equals to master file-filed1, then
job has to abend and message has to display as "AAAA4 is not there in master fie"
Transaction file
----+----1----+
AAAA1 BBB1 CCC1
AAAA2 BBB2 CCC2
AAAA3 BBB3 CCC3
AAAA4 BBB1 CCC1
Master File
----+----1----+----2----+
AAAA1 BBB1 CCC1 XXX1 YYY1
AAAA2 BBB2 CCC2 XXX2 YYY2
AAAA3 BBB3 CCC3 XXX3 YYY3
Expected Output:
Job has to abend and has to displaying mesage
"AAAA4 is not there in master fie"
========================================
Senario 3:
If field 2 of transaction file is NOT equals to master file-filed2,
then job has to abend and message has to display as "BBB5 is not there for AAAA1 in master fie"
Transaction file
----+----1----+
AAAA1 BBB1 CCC1
AAAA2 BBB2 CCC2
AAAA3 BBB3 CCC3
AAAA1 BBB5 CCC1
Master File
----+----1----+----2----+
AAAA1 BBB1 CCC1 XXX1 YYY1
AAAA2 BBB2 CCC2 XXX2 YYY2
AAAA3 BBB3 CCC3 XXX3 YYY3
Expected Output:
Job has to abend and has to displaying mesage
"BBB5 is not there for AAAA1 in master fie"
==============================================
Senario 4:
If field 3 of transaction file is NOT equals to master file-filed3,
then job has to abend and message has to display as " CCC6 is not there for AAAA1 in master fie"
Transaction file
----+----1----+
AAAA1 BBB1 CCC1
AAAA2 BBB2 CCC2
AAAA3 BBB3 CCC3
AAAA1 BBB1 CCC6
Master File
----+----1----+----2----+
AAAA1 BBB1 CCC1 XXX1 YYY1
AAAA2 BBB2 CCC2 XXX2 YYY2
AAAA3 BBB3 CCC3 XXX3 YYY3
Expected Output:
Job has to abend and has to displaying mesage
"CCC6 is not there for AAAA1 in master fie"