The invention relates to novel heteroarylamide derivatives having formula (I) and N-oxides, stereoisomers and pharmaceutically acceptable salts thereof, where RA, RB, R1 1, R′, R″, z and X are as defined in the claims. The arylamide derivatives of formula (I) have antiandrogenic properties. The invention also relates to compounds of formula (I) for use as a medicament and to pharmaceutical compositions comprising them and to their preparation.