View previous topic :: View next topic
|
Author |
Message |
Vinaya123
New User
Joined: 26 Feb 2014 Posts: 2 Location: INDIA
|
|
|
|
Hello..
I have some 15 PDSs to be backuped. I need the same attributes(DCB, etc.) of the original PDS to be copied for the new backup PDS even at backend.
It would be helpful if its an Utility( like IEBCOPY, IDCAMS). |
|
Back to top |
|
|
Pete Wilson
Active Member
Joined: 31 Dec 2009 Posts: 580 Location: London
|
|
|
|
Use DFDSS COPY which will copy the datasets contents and attributes exactly.
e.g.
Code: |
//STEP001 EXEC PGM=ADRDSSU
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
COPY ALLE ALLD(*) NMC NSC TGTA(SRC) SHR TOL(ENQF) OPT(4) -
DS INC( -
input.pds1 -
input.pds2 -
input.pds3 -
)) -
RENAMEU( -
(input.pds1 -
output.pds1 ) -
(input.pds2 -
output.pds2 ) -
(input.pds3 -
output.pds3 ) -
) |
Code'd |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
Suggest you read the IBM Utilities manual and do not forget to look at ADRDSSU. (note re ADRDSSU: Pete got there ahead of me by a few seconds!) |
|
Back to top |
|
|
Rohit Umarjikar
Global Moderator
Joined: 21 Sep 2010 Posts: 3051 Location: NYC,USA
|
|
|
|
Welcome to the forum..
What did IEBCOPY say? did you try Sort? As well as IEBGENER? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello and welcome to the forum,
When you create this backup, make sure it can be restored (tio other dataset names) and used.
Often people create a new backup process and do not make sure that everything is usable. Merely checking for a "successful" run is NOT enough. |
|
Back to top |
|
|
Vinaya123
New User
Joined: 26 Feb 2014 Posts: 2 Location: INDIA
|
|
|
|
Thank you all. I used LIKE command with IEBCOPY. ADRDSSU is also interesting. I learnt a new one .. thanks again |
|
Back to top |
|
|
|