IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

copy GDG files


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
janmejay
Warnings : 1

New User


Joined: 22 Jun 2007
Posts: 85
Location: bangalore

PostPosted: Thu Nov 18, 2010 12:48 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Nov 18, 2010 12:56 pm
Reply with quote

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
View user's profile Send private message
janmejay
Warnings : 1

New User


Joined: 22 Jun 2007
Posts: 85
Location: bangalore

PostPosted: Thu Nov 18, 2010 4:44 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Nov 18, 2010 4:52 pm
Reply with quote

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
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1788
Location: Bloomington, IL

PostPosted: Thu Nov 18, 2010 5:21 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts VB to VB copy - Full length reached SYNCSORT 8
No new posts Merge two VSAM KSDS files into third ... JCL & VSAM 6
Search our Forums:

Back to Top