Usage of YCPYMDLOBJ
search cancel

Usage of YCPYMDLOBJ

book

Article ID: 438090

calendar_today

Updated On:

Products

CA 2E

Issue/Introduction

When troubleshooting versions specific models in CA 2E it is often helpful to obtain a copy of the model for investigation internally.

CA 2E has a command to help with this:

YCPYMDLOBJ

We will explain how to use this command for troubleshooting models.

Environment

All versions of CA 2E

Resolution

To obtain a test copy of a model, follow these steps:

  1. First, back up the existing model by using the SAVLIB command.
  2. Then create a new empty model library by using YCRTMDLLIB
    • Ensure this library is upgraded to match the current environment
  3. Configure the Library List to point to the Source Model Library
  4. Next we can copy the model by using YBLDMDLLST or YADDMDLLE to add the function to a new model list
    • Note: You will only need to add the function itself. All dependencies are included when using the copy command
  5. Verify the objects being copied by using the YEDTCPYLST command
  6. Add the new/target mode library to the top of the library list
  7. Run the YCPYMDLOBJ command in *COPY mode using the newly created model list. 
  8. Wait for the process to complete, then use the SAVLIB command 

Additional Information

Documentation on the commands from above: