Page 1 of 1

Calling varying versions of GDG

PostPosted: Fri Jun 30, 2017 4:53 pm
by chintu
Hello
We use unix server in our project. We copy data from a gdg to unix through ucopy command. This timemy requirement is to copy data from different multiple versions of gdg through a JCL..suppose for the first day They want the data to be copied from the first 5 versions....2nd day the data should be extracted from the first 7 gdgs....it kind of varies.....is there a way to do that? Kindly help

Re: Calling varying versions of GDG

PostPosted: Fri Jun 30, 2017 5:55 pm
by NicC
Do you really have GDG generations that use versioning i.e. the V00 part is not constant. One has a generation and then versions of the generation - only one of which can be catalogued at a time.

Or are you just being sloppy with your terminology.

You need to be clearer with your requirement. Are you saying that day one you want generations 1, 2, 3, 4 and 5 and then day 2 to want 1-5 again plus generations 6 and 7?
Or do you mean that day 1 you want generations 1 - 5 and day 2 generations 6 & 7?

If the latter then simply get rid of any processed generations after processing and next day read all generations by specifying the GDG base name.

Re: Calling varying versions of GDG

PostPosted: Mon Jul 03, 2017 1:17 pm
by chintu
hello
Thanks for the response.

I mean the first part...not the latter part....i need to extract those generations which will have data. Suppose first 6 out of 10 generations have data....so i need to extract all 6 of them. So in the jcl do i need to create separate 6 steps for extracting each data...or there is any better way to do this...like....check which generations have data...and extract only those....we will be extracting the data of the gdg to unix server through ucopy command.

Re: Calling varying versions of GDG

PostPosted: Mon Jul 03, 2017 2:19 pm
by NicC
Assumption 1: This is a one-off exercise to implement a project
Assumption 2: once implemented the extract will be run, possibly daily, against the latest generation
Assumption 3: You are extracting records by record type
Assumption 4: Each record has a date in it which tells you when it was created

With those assumptions for your one-off exercise you specify no generation - only the GDG base name - this will pick up all generations
For your daily extract you specify the latest generation only (0)