Am besten mit einer Monitor-Group:

/free
monitor;
callp qcmdexec ...
on-error *all;
endmon;
/end-free