According to a general process E compounds of formula (I) wherein R4 is a group of formula (III) and p is zero, q is 1 and r is I may be prepared by reaction of the compound of formula (XVI) wherein R1, R2, R3, R6 and R9 have the meanings defined above or are groups convertible thereto. ##STR8## with the amine R5 NH2 (XI) in the presence of a suitable dehydrating agent such as DCC,EDC, BOP or brom