Commands (YCLRMDL - YDLTOBJTBL) › YCPYMDL (Copy Model) Command › Notes
Notes
- You cannot copy a model while it is in use.
- The YCPYMDL command does not create a CA 2E generation library. If you have created a model using the CRTMDL(*YES) parameter of YCPYMDL, you will need to create the generation library yourself.
- To create a generation library:
YCRTMDLLIB MDLLIB(*NONE) GENLIB(NEWGEN)
- If you wish to copy objects from the generation library of the copied model:
YCRTDUPOBJ OBJ (*ALL) +
FROMLIB (old generation library) +
OBJTYPE (*ALL) +
TOLIB (new generation library) +
DATA (*YES) CRTOPT (*ALL)
- The YCPYMDL and YCRTDUPOBJ commands leave your new model library with settings from your old model for some of the Environment model values. For example:
- YGENLI—Generation Library
- YSQLLIB—SQL Collection Library
- YCPYLIB—Copy Library
- YOLDLIB—Old Library
- YCMPTXT—Company Text
Use the YCHGMDLVAL command to change the settings of these model values in your new model as needed.
For more information on the Environment model values, refer to this chapter, the YCHGMDLVAL command.