Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

copy GDG files

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
janmejay
Warnings : 1

New User


Joined: 22 Jun 2007
Posts: 81
Location: bangalore

PostPosted: Thu Nov 18, 2010 12:48 pm    Post subject: copy GDG files
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: 8593
Location: Back in jolly old England

PostPosted: Thu Nov 18, 2010 12:56 pm    Post subject:
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: 81
Location: bangalore

PostPosted: Thu Nov 18, 2010 4:44 pm    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Thu Nov 18, 2010 4:52 pm    Post subject:
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: 1753
Location: Bloomington, IL

PostPosted: Thu Nov 18, 2010 5:21 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Append data from two files into a sin... Praveen04 DFSORT/ICETOOL 5 Thu Mar 16, 2017 7:29 pm
No new posts SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts HALDB data refresh/copy from producti... vineetanand2007 IMS DB/DC 1 Mon Jan 02, 2017 11:16 am
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts syncsort: copy lines after the keyword shreya19 SYNCSORT 7 Fri Dec 02, 2016 9:47 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us