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 one pds to another pds with same attributes

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

New User


Joined: 26 Feb 2014
Posts: 2
Location: INDIA

PostPosted: Wed Feb 26, 2014 2:08 pm    Post subject: copy one pds to another pds with same attributes
Reply with quote

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
View user's profile Send private message

Pete Wilson

Active User


Joined: 31 Dec 2009
Posts: 470
Location: London

PostPosted: Wed Feb 26, 2014 2:21 pm    Post subject:
Reply with quote

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
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2177
Location: Hampshire, UK

PostPosted: Wed Feb 26, 2014 2:22 pm    Post subject: Reply to: copy one pds to another pds with same attributes
Reply with quote

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
View user's profile Send private message
Rohit Umarjikar

Senior Member


Joined: 21 Sep 2010
Posts: 2165
Location: NY,USA

PostPosted: Wed Feb 26, 2014 2:28 pm    Post subject:
Reply with quote

Welcome to the forum..

What did IEBCOPY say? did you try Sort? As well as IEBGENER?
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Wed Feb 26, 2014 7:45 pm    Post subject:
Reply with quote

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
View user's profile Send private message
Vinaya123

New User


Joined: 26 Feb 2014
Posts: 2
Location: INDIA

PostPosted: Fri Apr 18, 2014 10:25 am    Post subject:
Reply with quote

Thank you all. I used LIKE command with IEBCOPY. ADRDSSU is also interesting. I learnt a new one .. thanks again
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 physical Tape files to a Mainfra... Dadi Krishna Teja JCL & VSAM 11 Thu May 16, 2019 10:25 pm
No new posts How to copy\replace the members in pr... abdulrafi JCL & VSAM 6 Fri Mar 22, 2019 7:02 pm
This topic is locked: you cannot edit posts or make replies. Copy one file to possible multiple files dibyendumandal11111 SYNCSORT 9 Fri Mar 08, 2019 2:47 am
No new posts how to copy a sequential dataset by u... javen777 JCL & VSAM 3 Thu Feb 21, 2019 11:37 pm
No new posts Copy members from Input PDS to Output... Poha Eater JCL & VSAM 9 Tue Jan 29, 2019 3:56 pm

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