I have a job that runs every business day and creates a new generation of a GDG.
Now my requirement is to automate a week job that runs on 1st of every month
The input for this week job are the files that were created in the previous week.Since we can't predict the number files that will get created each week it's not possible to hardcode the generations(ie:0,-1,-2 ...etc).So by specifying the GDG base as the input file(this will take all the 50generations) how can we extract only the required records for the week job.?or the files generated between the last date of processing and the current date ?and add the version (GXXXX) of the file to the output file.