Maintaining local and remote definitions separately
In the copy book example, if you use TYPE=GROUP macros to delimit groups within COMTERMS, edit COMTERMS after assembling DFHTCTLA and before assembling DFHTCTRB to change the TYPE=GROUP macros to name a different set of groups. (This does not apply if the tables are to be migrated to different CSD files.)
MIGRATE TABLE(DFHTCTLA) TYPESGROUP(TTS)
MIGRATE TABLE(DFHTCTRB) TYPESGROUP(TTS)
Migration of the remote terminals normally creates definitions that use the same TYPETERMs created for the corresponding local definitions.
If there are only a small number of terminals that need more than one definition, it is probably best to migrate all the definitions in the terminal-owning TCT and then to use RDO to create the corresponding remote definitions with the required REMOTESYSTEM attribute. You can use the COPY and ALTER commands to do this.