Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
Posted: Wed Aug 20, 2008 3:53 pm Post subject:
rover,
Does the order of records matter? If you just supply the GDG Base to sortin the system concatenates the latest version first and oldest version will be the last one. Is that order ok ? Do you need the oldest generation data first? _________________ Kolusu
www.linkedin.com/in/kolusu
You say 'supply the GDG Base to sortin', but I need GDG base to be 'sortout'. It's required to split input sequential dataset into multiple output GDG datasets and have DFSORT allocate and fill as many generations as required for operation.
For sample above, I need DFSORT to allocate 100 GDG data sets for given GDG base, so that I don't have to define them in JCL as: GDG(+1), GDG(+2), GDG(+3), GDG(+n).
The order of records does not matter, i.e. records from input data set can be placed into output generations in any order. Only a number of output records matters.
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
Posted: Thu Aug 21, 2008 1:27 pm Post subject:
Rover,
Sorry. I misunderstood you requirements before.
Here is a DFSORT job which will give you the desired results. The number of files you want to split is controlled via symnames. For ex: if you want to split the input file into 10 you simply provide
Code:
FNUM,+10
The job will take this number and generate DD definitions for 10 files and also SPLIT1R parm to split the records
You can change this number to any number(<=256) you want. You can only have a max 256 generations for a gdg, you cannot go beyond that number.
Verify the output from step0200. It will have the actual Job required to split the input file. Once verified that JCL is created correctly change the following statement in step0200
Posted: Thu May 28, 2009 2:34 pm Post subject: GDG base - How to get Oldest generation data first in output
Kolusu,
Quote:
Does the order of records matter? If you just supply the GDG Base to sortin the system concatenates the latest version first and oldest version will be the last one. Is that order ok ? Do you need the oldest generation data first?
Is there a way in sort to get the oldest generation data first? I would like to use the GDG base and create the output with data from the oldest generation to latest generation.
I searched in the forum and could not find anything relevant. As this topic had the question mentioned, updated the same.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum