View previous topic :: View next topic
|
Author |
Message |
janmejay Warnings : 1 New User
Joined: 22 Jun 2007 Posts: 85 Location: bangalore
|
|
|
|
Hi
I have 8 gdg files and each file have more than 100 generations.
i need to copy the data only from previous 45 generations of each file.
is there any way to put the count , so that it will take the data from previous 45 generations. or I need to hard code all the files names in my Job.
Thank you |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
OK, you say copy, do you really mean copy or do you mean backup, because if you do then the solutions may vary in ease.
Perhaps if you tell us exactly what it is that you want to do, someone might be better placed to help you.
Remember we only have the minimal information that you have bothered to give us to work with. |
|
Back to top |
|
|
janmejay Warnings : 1 New User
Joined: 22 Jun 2007 Posts: 85 Location: bangalore
|
|
|
|
i just want to extract the information from previous 45 generations of each files. IF I use the gdg base then it will take all the genarations that exists.
now if I manually write the file names , like (-1) , (-2) , (-3) , (-4) ... (-45)
it will work. i just wanted to know instead of writing all the file names , is there any way , that it will extract the data from previous 45 generations. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
janmejay wrote: |
now if I manually write the file names , like (-1) , (-2) , (-3) , (-4) ... (-45)
it will work. i just wanted to know instead of writing all the file names , is there any way , that it will extract the data from previous 45 generations. |
Actually that will not be the case. You need to use (00) through (-44) to get the last 45 generations.
Looks like you need to code them all manually |
|
Back to top |
|
|
Akatsukami
Global Moderator
Joined: 03 Oct 2009 Posts: 1788 Location: Bloomington, IL
|
|
|
|
If the DSNs will be constant, bite the bullet and write the JCL; it actually shouldn't take long if you know how use the ISPF editor's line commands.
If not, humble yourself and ask a senpai to write a little piece of Rexx to generate the JCL, perhaps (although not necessarily) using an ISPF table and a skeleton. |
|
Back to top |
|
|
|