Save solution under different name

Hello to all

I have a question and I would like to know if anyone knows how to solve this problem.

My question is: I have a scrpit in matlab which runs a gams routine in a loop. My problem is how to make that in each iteration, GAMS saves the solution with a different name (I send the gams solution back to Matlab).

My problem is more of syntax since I don’t know how to write those lines of code.

Thanks to all