Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 1777
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 Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts FTP Skip or ignore error and process ... AJAYREDDY All Other Mainframe Topics 3 Wed Sep 27, 2017 8:12 pm
No new posts Comparing 2 Files using Current time arunsoods SYNCSORT 9 Fri Sep 22, 2017 6:00 pm
No new posts Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am
No new posts XMITIP sends it out. Can it copy on l... Rommel Dayon Rustia IBM Tools 0 Tue Sep 05, 2017 10:16 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us