Calling varying versions of GDG



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

Calling varying versions of GDG

Postby chintu » Fri Jun 30, 2017 4:53 pm

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
chintu
 
Posts: 14
Joined: Sun Jan 08, 2017 8:51 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Calling varying versions of GDG

Postby NicC » Fri Jun 30, 2017 5:55 pm

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.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Re: Calling varying versions of GDG

Postby chintu » Mon Jul 03, 2017 1:17 pm

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.
chintu
 
Posts: 14
Joined: Sun Jan 08, 2017 8:51 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Calling varying versions of GDG

Postby NicC » Mon Jul 03, 2017 2:19 pm

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)
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post