Hi, I have a dataset with 100 variables, 50 of which are called Xi_ante and 50 of which are called Xi_post.

I want to delete those with "_post" from my dataset.

I tried using the following command:
Code:
global variables [all variables Xi without _ante or _post]

foreach `var' of global variables{
drop `var'_post
}
But I get a syntax error. Is there any way to tell stata to drop the variables that contain "_post" in their name?

Thank you!