logistic Treat xvar, iterate (100)
predict pscore
gmatch pscore, cal(0.1)

From the above, I can easily get matched group from the set variable.

But I want to apply nearest neighbor matching within a caliper of 0.001

I do not know how to apply the nearest neighbor and get matched group for running a regression on the matched group.

Could anyone please help me?