z/OS DFSMSdss Storage Administration
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Example 6: A Data Set Copy to a Preallocated Target Data Set

z/OS DFSMSdss Storage Administration
SC23-6868-01

//JOB8      JOB  accounting information,REGION=nnnnK
//STEP1     EXEC PGM=ADRDSSU
//SYSPRINT  DD   SYSOUT=A
//DASD1     DD   UNIT=3380,VOL=(PRIVATE,SER=111111),DISP=OLD
//DASD2     DD   UNIT=3380,VOL=(PRIVATE,SER=222222),DISP=OLD
//SYSIN     DD   *
 COPY DATASET(   -
   INCLUDE(USER.TEST.DATA) )  -
   LOGINDDNAME(DASD1)  -
   OUTDDNAME(DASD2)  -
   REPLACE  -
   DELETE
/*

Example 6 shows a data set copy in which a source data set (USER.TEST.DATA) allocated on volume 111111 and cataloged in catalog USERCAT is copied to a preallocated target data set (with the same name as the source) on volume 222222. The REPLACE keyword specifies that you want DFSMSdss to search the target volume for a usable preallocated data set. The data set is deleted from the source volume, if it is expired.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014