CPYF 和 CRTDUPOBJ 在物理/逻辑文件方面有什么区别?

What is the difference between CPYF and CRTDUPOBJ in regard to a Physical/ Logical file?

我们在 Pf/Lf 上使用 CPYF 和在 PF/LF 上使用命令 CRTDUPOBJ 有什么区别。

CPYF 专注于数据...

Replace or add records . . . . .   *NONE         *NONE, *ADD, *REPLACE... 
Create file  . . . . . . . . . .   *NO           *NO, *YES
Copy from record number  . . . .   *START        Number, *START 
Copy to record number  . . . . .   *END          Number, *END     
Copy from record key:                                             
  Number of key fields . . . . .   *NONE         Number, *BLDKEY  
  Key value  . . . . . . . . . .                                  
Copy to record key:                                               
  Number of key fields . . . . .   *NONE         Number, *BLDKEY  
  Key value  . . . . . . . . . .                                  
Number of records to copy  . . .   *END          Number, *END 
Include records by char test:                                              
  Field  . . . . . . . . . . . .   *NONE         Name, *NONE, *RCD, *FLD   
  Character position . . . . . .                 Number                    
  Relational operator  . . . . .                 *EQ, *GT, *LT, *NE, *GE...
  Value  . . . . . . . . . . . .                                           
Include records by field test:                                               
  Relationship . . . . . . . . .   *NONE         *NONE, *IF, *AND, *OR       
  Field  . . . . . . . . . . . .                 Name                        
  Relational operator  . . . . .                 *EQ, *GT, *LT, *NE, *GE...  
  Value  . . . . . . . . . . . .                                             
Record format field mapping  . .   *NONE         *NONE, *NOCHK, *CVTSRC...

CRTDUPOBJ着重于对象的整体

Duplicate data . . . . . . . . .   *NO    
Duplicate constraints  . . . . .   *YES   
Duplicate triggers . . . . . . .   *YES   
Duplicate file identifiers . . .   *NO    
Duplicate access control . . . .   *ALL