For example, a substituted phenylalkyl acid or substituted benzoic acid (V) having a leaving group (Y) at the desired X (or Q) position can be amidated in the presence of a halogenating reagent with an amine of formula VI, as depicted below. ##STR9## wherein Y is a leaving group and R1, Ra, Rb, q, j, y and R2 are as described hereinabove.