Heterocyclic amides of the formula: ##EQU1## wherein: X is N or CH; n is O or 1 and R is ##EQU2## wherein: R.sub.1 is hydrogen or methyl, R.sub.2 and R.sub.3 which are the same, are lower alkyl or joined together, represent a polymethylenic chain from C.sub.4 to C.sub.7 optionally including an oxygen atom, and R' is saturated or unsaturated acyclic hydrocarbon radicals from C.sub.1 to C.sub.20, cycloalkyl from C.sub.3 to C.sub.7, Ar - A- or ##EQU3## wherein: A is a single bond or a saturated or unsaturated acyclic hydrocarbon chain from C.sub.1 to C.sub.6 optionally including an oxygen atom, and Ar and R" are aromatic, alkoxy aromatic, methylenedioxy aromatic or polymethylenedioxy aromatic. These compounds are used as medicine, especially in the treatment of gastric hypersecretion, gastroduodenal ulcers and central nervous system disorders.
                            式子为:##EQU1## 其中:X为N或CH;n为O或1,R为##EQU2## 其中:R.sub.1为氢或甲基,R.sub.2和R.sub.3相同,为低级烷基或连接在一起,代表一个C.sub.4到C.sub.7的多甲基链,可包括一个氧原子,R'为饱和或不饱和的C.sub.1到C.sub.20的
无环烃基,C.sub.3到C.sub.7的环烷基,Ar-A-或##EQU3## 其中:A为单键或饱和或不饱和的C.sub.1到C.sub.6的
无环烃链,可包括一个氧原子,Ar和R"为芳香族、烷氧基芳香族、亚甲二氧基芳香族或多亚甲基二氧基芳香族。这些化合物被用作药物,特别是治疗胃分泌过多、胃十二指肠溃疡和中枢神经系统疾病。