Hi statalisters,

I want to use global macro's to refer to folder names, but ran into some unexpected behaviour when using them before the underscore "_" symbol.

Stata seems to ignore the macro that goes before the underscore.

*For example when i do this:

global year "2019"
global month "10"

di "$year_$month"


The console prints: "10" and ignores my call for year.

I want to get to "2019_10".

Could someone explain to me why the first macro gets ignored, and how i could solve it?
Thanks in advance!