The short answer is yes, its possible.
Now for the slightly longer version. I'm not sure exactly what you end goal is so I'm going to make assumptions and answer from that.
Assumption - You want to switch from COBOL to RPGIV.
So the copy model object won't do that for you. It is designed to copy an object (and dependencies) to a different model. It does this without making changes to the object being copied.
To do what you want, you will need to go into each external function and change the compile type from CBL (or CBI) to RP4. Now that has its own risks. If you have put in your own field names and are using the YHLLVNM *CBL it means you could have fields names longer than 4 characters. This is incompatible with the RPG generator. In short you get weird generation/compile errors. This is the biggest issue when switching from COBOL to RPGIV.
This should go without saying but you need to review your model for user source and convert it to RPGIV and place the source in the QRPGLESRC source file using the same implementation name (note for those converting a function from RPG to RP4 you would need to do the same thing). This is because the generator will be looking for the new source member in the file based on the generation source type.
There is an alternative to going into each function and making the change but it involves editing the 2e data files in the model and I only suggest that if you: 1. Really, Really, Really know your stuff about the underside of the model files. 2. You have a really good back up and restore option.
------------------------------
[JobTitle]
[CompanyName]
[State]
------------------------------
Original Message:
Sent: Apr 01, 2025 01:11 PM
From: Jaya Mohapatra
Subject: COPY One model to Another SYNON COBOL to SYNON RPGIV
Hi Community,
I would like to get some info on how to Copy all objects under the COBOL model (CA 2E) library to the RPGIV model library. I tried YCPYMDLOBJ, but I don't see the functions in there.
Is it even possible?
Regards