Hi everyone,

I'd like to place all values of multiple columns in one column. I tried stack using a loop:

Code:
foreach id of local temp {
            stack cum_abnormal_return_short`id', into(cum_abnormal_return_short)
            stack cum_abnormal_return_med`id', into(cum_abnormal_return_med)
            stack cum_abnormal_return_long`id', into(cum_abnormal_return_long)
            }
Unfortunately, an error occurs as stack changes the dataset. Is there any other way?

Thanks,

Paul