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
 

 

mass copy of datasets

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
jerryte

Active User


Joined: 29 Oct 2010
Posts: 187
Location: Toronto, ON, Canada

PostPosted: Sat Sep 03, 2011 12:47 am    Post subject: mass copy of datasets
Reply with quote

A coworker needs to transfer a large number (1400+) of her datasets from her old user id to a new one. I could write a rexx to do it for her
  • Get dataset name
  • Get dcb attributes using LISTDSI
  • Allocate new dataset
  • Copy using IEBGENER or IEBCOPY

Is there another utility that will do it much easier? I don't need the actual code or jcl. Thanks
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10254
Location: italy

PostPosted: Sat Sep 03, 2011 12:56 am    Post subject: Reply to: mass copy of datasets
Reply with quote

adrdssu dump
adrdssu restore renameu
adrdssu dump delete ( output dd dummy )

discussed zillions of times around here
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8054
Location: East Dubuque, Illinois, USA

PostPosted: Sat Sep 03, 2011 12:56 am    Post subject:
Reply with quote

Use DF/DSS (ADRDSSU) to back up the high level qualifier, then restore with a RENAME parameter to change the high level qualifier. Two jobs that'll take half an hour to write and however long to run. The only caveat is that if some of the data sets have fixed size, ADRDSSU only restores the actual used space, not the allocated space.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8054
Location: East Dubuque, Illinois, USA

PostPosted: Sat Sep 03, 2011 12:57 am    Post subject:
Reply with quote

enrico, you've got fast fingers today! icon_smile.gif
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10254
Location: italy

PostPosted: Sat Sep 03, 2011 12:59 am    Post subject: Reply to: mass copy of datasets
Reply with quote

Yep icon_biggrin.gif
Back to top
View user's profile Send private message
jerryte

Active User


Joined: 29 Oct 2010
Posts: 187
Location: Toronto, ON, Canada

PostPosted: Sat Sep 03, 2011 1:06 am    Post subject:
Reply with quote

Thanks. What is the name of the IBM manual so I can read about it? I tried google but am not having much luck.
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


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

PostPosted: Sat Sep 03, 2011 1:16 am    Post subject:
Reply with quote

jerryte wrote:
Thanks. What is the name of the IBM manual so I can read about it? I tried google but am not having much luck.

http://publib.boulder.ibm.com/infocenter/zos/v1r12/topic/com.ibm.zos.r12.adru000/toc.htm
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 -> TSO/ISPF 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
This topic is locked: you cannot edit posts or make replies. SDSF multiple spool datasets extracte... PJAlarcon CLIST & REXX 1 Fri Apr 21, 2017 10:50 pm
No new posts Copy load modules and alias vasanthz IBM Tools 5 Thu Apr 20, 2017 6:31 am
No new posts Edit large number of datasets (QSAM) zh_lad TSO/ISPF 3 Tue Apr 04, 2017 6:08 pm
No new posts Mass comment and edit elixir1986 IBM Tools 3 Thu Mar 02, 2017 10:09 pm


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