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
 

 

want to copy GDG with out mentioning them in DD DSN

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

New User


Joined: 06 Jun 2005
Posts: 4

PostPosted: Mon Jun 06, 2005 10:49 am    Post subject: want to copy GDG with out mentioning them in DD DSN
Reply with quote

hi all,
My name is aravind can anyone plz try to give me an effective ans for this.

I want to copy last 10 members of a GDG(which has 250 members in it) with out mentioning them in DD DSN
i.e.
I don't want to mention like
//SYSUT1 DD DSN = PC1.COMMERCIAL.STATFILE(0),DISP=SHR
DD DSN = PC1.COMMERCIAL.STATFILE(-1),DISP=SHR
DD DSN = PC1.COMMERCIAL.STATFILE(-2),DISP=SHR
----------------------------------------
----------------------------------------
DD DSN = PC1.COMMERCIAL.STATFILE(-9),DISP=SHR

I want to copy without mentioning individual members as concatenating datasets.
Is there a way to code so as to get the above result without including the list of members as Concatenating datasets?

thanks in advance.
regards,
aravind
Back to top
View user's profile Send private message

Deepa.m
Warnings : 1

New User


Joined: 28 Apr 2005
Posts: 99

PostPosted: Mon Jun 06, 2005 11:40 am    Post subject:
Reply with quote

No it is not possible. you have to follow the method you are currently using to copy limited GDG.
Back to top
View user's profile Send private message
sunnyfuture

New User


Joined: 06 Jun 2005
Posts: 4

PostPosted: Mon Jun 06, 2005 11:54 am    Post subject: a doubt regarding
Reply with quote

so in that case do we need to mention all those generations.this is k for small num of gdgs gens,but if we intend to copy hundreds of gdgs gens,this would be a tedious process.so deepa r u sure this is the only process because i think there might be some process. plz feel free to correct me if i am wrong
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Mon Jun 06, 2005 6:06 pm    Post subject: Re: a doubt regarding
Reply with quote

aravind, if you create a list of all the generations of the GDG, and then select the last 10 items, you would have the list of dataset names to be copied. You could then easily pass the list to a program/utility and build the required copy statements.

What order do you want to copy the datasets in (LIFO? FIFO?)? Are you copying each generation to a seperate dataset, or do you wish to concatenate all of the generations into a single dataset?
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 SEQ to PDS and create stats steve-myers JCL & VSAM 5 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
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


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