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: 1771
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 getting three output files out of JOI... migusd SYNCSORT 7 Mon Jun 05, 2017 11:30 pm
No new posts Unable to create multiple files using... mbattu COBOL Programming 3 Fri May 05, 2017 5:35 pm
This topic is locked: you cannot edit posts or make replies. Merge two files and update Trailer re... Yashashri JCL & VSAM 1 Thu May 04, 2017 12:54 pm
No new posts copy SEQ to PDS and create stats steve-myers JCL & VSAM 7 Thu Apr 27, 2017 1:15 am
No new posts Copy load modules and alias vasanthz IBM Tools 5 Thu Apr 20, 2017 6:31 am


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