Ich habs zwar schon länger nicht probiert,
aber früher (als wir noch einen Kaiser hatten)
konnte sqlrpgle kein /copy in /copy auflösen

also:

PGM:
...
define d_spec
/copy machwas
undefine d_spec

/copy tu_es

und in machwas
...
if defined tu_es
/copy d_spec_vom_pgm
D ...
D...
endif

C ...
C...

Robi