> > I have a requirement where we need to compare the current version and previous > version of a GDG file. The job is newly created and when it runs 1'st time this will be a > issue as the there is no version. Pls advise how we need to address in this scneraio. > > > Regards > Ron > > ----------------------------------------------------------------------
The only way I would think is to create a dummy GDG so you have a g0001v00 entry before your production runs. Or copy your last test file into this GDG and use it for input. Or depending on the process to compare the GDG (REXX, COBOL, Utility), you could code to test for the +1 and 0 Gens in the code. If either is incorrect exit with a message. Otherwise the first time it runs it will fail probably with a JCL error. If you create a dummy, your expectations should be that the process will be flawed. What you are comparing will not be valid and you should document that on this first run only it will not be successful. This really is a decision for your shop. How to handle a first run of a job that does not have proper inputs on a first run. How are you comparing the GDGs? Remember that when you create your +1 gen the oldest will fall off. So depending on the number of GDGs you are creating you may have more issues to review. For example, the job that creates +1 fails, but the dataset is created anyway. How do you handle that. The GDGs go missing, how to verify before the job runs you have everything in place? Lizette ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html

