Deat GAP Forum, For a p-group $G$. The attibute "Omega(G,p)"(37.14) can be used when $G$ is abelian. Let $G$ be a finite non-abelian p-group. Is there a method to get the subgroup that is generated by all elements of $G$ of order p? Best Wishes Jianjun Liu