[Library] [Contents] [Revisions] [Prev Topic] [Next Topic] [Search] [Search Results] [Prev Topic Match] [Next Topic Match] [Notes] [List Notes] [Print] [Download] [Help]

2.6.1.1 Operands of SMCOPY



When using the SMCOPY command, specify the following operands:



   You can copy a data set to either a new or existing data set. When you 
   copy to a new data set, the system allocates one for you, using the 
   attributes of the data set being copied. When you copy to an existing data 
   set, the system uses the attributes of the data set to which you are 
   copying the data. 


   You can copy data sets that have different logical record lengths or block 
   sizes. You cannot, however, copy data sets that have different record 
   formats.  For example, you cannot copy a data set with a record format of 
   FB to a data set with a record format of VB. 


    ___ Example ____________________________________________________________  
   | To copy member MEM1 of the partitioned data set PREFIX.PDS1.DATA into  | 
   | member MEM2 of PREFIX.PDS2.DATA, specify:                              | 
   |                                                                        | 
   |   SMCOPY FDS(pds1.data(mem1)) TDS(pds2.data(mem2)) NOTRANS             | 
   |                                                                        | 
   |                                                                        | 
   |                                                                        | 
   | To copy member MEM1 of the partitioned data set PREFIX.PDS1.DATA into  | 
   | the sequential data set PREFIX.SEQ1.DATA, specify:                     | 
   |                                                                        | 
   |   SMCOPY FDS(pds1.data(mem1)) TDS(seq1.data) NOTRANS                   | 
   |                                                                        | 
   |________________________________________________________________________| 




[Prev Topic] [Next Topic] © Copyright IBM Corp. 1988, 2000

IBM BookManager® BookServer Copyright 1989, 1999 IBM Corporation. All rights reserved.


Return to library: [ OS/390 | TPF | VM | VSE | IBM Hardware | S/390 Redbooks | RS/6000 SP ]

Glossary - IBM Dictionary of Computing

How to: [ Order publications | Contact OS/390 ]