Author: Ayyappa1
Subject: Compare each GDG Generations to other GDG generations
Posted: Tue Jun 28, 2016 1:48 pm (GMT 5.5)
Hello All,
I receive multiple generations to my GDG dataset (say TESTZZ2.ACTUAL.TEST this is a GDG Base). The number of files received may vary day to day. It can be either 0 files or 3 files or files or 2 files, etc. No specified pattern/rule for no of files.
I have a Master dataset with 30 Generations (say TESTZZ2.MASTER.DATA - GDG Base). Now my requirement is I need to compare each generation of TESTZZ2.ACTUAL.TEST with each generation of TESTZZ2.MASTER.DATA. If there is exact match of the file content, TESTZZ2.ACTUAL.TEST generation file has to be deleted. If not matched, should be left as it is.
Any suggestions on how to achieve it would be helpful.
Note : After processing the TESTZZ2.ACTUAL.TEST by other Job(say DAILPROC), an EMPTY file with next generation number will be created. Say for example, I have received 5 files today. After processing by DAILPROC, an empty generation TESTZZ2.ACTUAL.TEST.G0006V00 will be created.
_________________
Kind Regards,
Ayyappa
Subject: Compare each GDG Generations to other GDG generations
Posted: Tue Jun 28, 2016 1:48 pm (GMT 5.5)
Hello All,
I receive multiple generations to my GDG dataset (say TESTZZ2.ACTUAL.TEST this is a GDG Base). The number of files received may vary day to day. It can be either 0 files or 3 files or files or 2 files, etc. No specified pattern/rule for no of files.
I have a Master dataset with 30 Generations (say TESTZZ2.MASTER.DATA - GDG Base). Now my requirement is I need to compare each generation of TESTZZ2.ACTUAL.TEST with each generation of TESTZZ2.MASTER.DATA. If there is exact match of the file content, TESTZZ2.ACTUAL.TEST generation file has to be deleted. If not matched, should be left as it is.
Any suggestions on how to achieve it would be helpful.
Note : After processing the TESTZZ2.ACTUAL.TEST by other Job(say DAILPROC), an EMPTY file with next generation number will be created. Say for example, I have received 5 files today. After processing by DAILPROC, an empty generation TESTZZ2.ACTUAL.TEST.G0006V00 will be created.
_________________
Kind Regards,
Ayyappa