Page 1 of 1

Syntax for copying a pds into another pds

PostPosted: Wed Jun 17, 2009 10:37 am
by senthil
hi all,
can any one give me the syntax for copying a pds into another pds.
my source pds may contain more than 200 members,
my new pds should be an exact replica of the source pds.

Re: copy pds into another

PostPosted: Wed Jun 17, 2009 11:07 am
by dick scherrer
Hello,

In tso/ispf select option 3 (utilities). Look down the list for a selection that says move/copy (i believe this is selection 3 again).

The system will ask for the old (existing) dataset and then the new one. When prompted for dataset info, specify the output dataset should be build using the input info. Simply specify all members and all will be copied from the old to the new dataset.

Re: copy pds into another

PostPosted: Wed Jun 17, 2009 4:00 pm
by expat
Or you could use IEBCOPY in batch

Re: Syntax for copying a pds into another pds

PostPosted: Thu Jun 18, 2009 12:11 pm
by senthil
hi
i forgot to tell you that the copying process should be done in a rexx exec.

Re: Syntax for copying a pds into another pds

PostPosted: Thu Jun 18, 2009 5:26 pm
by expat
Invoke IEBCOPY from REXX, or use LM services - see the ISPF manuals for details.