Commands (YCLRMDL - YDLTOBJTBL) › YCPYMDLOBJ (Copy Model Objects) Command › Notes › Contents of Models Before and After Copy
Contents of Models Before and After Copy

- The following considerations apply to the issuing of generated field names and source member names if CPYVNM(*YES) is specified:
- – If either the name for a field or RPG prefix for a file or source member name from the source model have already been used in the target model, a warning will be generated. If the target model is allocating names automatically (i.e., a value of *YES specified for the YALCVNM model value), a newly generated name or RPG III prefix will be allocated to the object when the copy occurs. If you are not auto-allocating names, they will be left blank for you to supply. The new names will be recorded on the audit listing.
Note: If different model prefixes are used for the two models (specified with the YOBJPFX model value), these will be retained in source member names after copying. In this instance it is very unlikely that there will be any conflict of source member names.
- The following considerations apply to the issuing of message identifiers.
- – If a message identifier already exists in the target model, and you have specified that the target model is to allocate message identifiers automatically (i.e., the YMSGPFX model value is not *NO), a new identifier will be assigned. If you have not, the identifier will be left blank.
- – If the messages in the source and target models are stored in message files of different names (the message file is determined by the message prefix), then a new message file with the same name as that used in the source model will be created in the target model. This fact is recorded on the audit listing.
- The following considerations discuss how the Copy Subfunctions (CPYSUBFUN) and Expand Required Objects (EXPRQDOBJ) parameters affect the copying of functions.
- – The EXPRQDOBJ parameter applies only when a function is not included by CPYSUBFUN (does not qualify for expansion) and does not exist in the target model.A function qualifies for expansion of references if it is explicitly selected, it meets the criteria set by the CPYSUBFUN parameter, or if it does not exist in the target model and EXPRQDOBJ is set to *YES.
- – The following table shows how the CPYSUBFUN and EXPRQDOBJ parameters work together to control whether references are expanded for a function and whether the function is copied to the target model. Note that this table applies only if the function is NOT explicitly selected and the CPYSUBFUN parameter is not set to *ALL.