When maintaining dictionary entities, how can I avoid the “DC601074 ALREADY CONNECTED” warning?
When editing dictionary entities, it is possible to encounter the warning message “DC601074 ALREADY CONNECTED” if two entities are already connected in some way.
For example:-
MOD MODULE NAME IS MYMODULE1 VERSION IS 1
'MYCLASS' IS MYATTR1
*+ W DC601074 ALREADY CONNECTED
MODULE SOURCE FOLLOWS
LINE 1.
LINE 2.
LINE 3.
MSEND
.
If done in an IDMSDDDL batch job, this will result in a return code of 4.
If you want to avoid the DC601074 warning message (and eventually the return code 4 when doing this in batch using IDMSDDDL), consider using the REPLACE (REP) verb instead of MODIFY (MOD):-
REP MODULE NAME IS MYMODULE1 VERSION IS 1
'MYCLASS' IS MYATTR1
MODULE SOURCE FOLLOWS
LINE 1.
LINE 2.
LINE 3.
MSEND
.