
set cmf=GTAPv7_arm_tms_unil_loop
set code=GTAPv7 

:: ======================================================================================================
REM Loop over countries whose tariffs are shocked (x) and over trading partners (y) and size of shock (z) 
:: ======================================================================================================

for %%x in (Oceania EastAsia SEAsia SouthAsia NAmerica LatinAmer EU_28 MENA SSA RestofWorld) do (
for %%y in (1 2 3 4 5 6 7 8 9 10) do (
cd ..\batch   
..\tab\%code%  -cmf ..\cmf\%cmf%.cmf -p1=%%x -p2=%%y >nul
cd ..\sol      
sltohta -sss -map=u.map       arm_unil_%%x_%%y.sl4 csv\arm_%%x_%%y_u.csv      >nul
sltohta -sss -map=qgdp.map    arm_unil_%%x_%%y.sl4 csv\arm_%%x_%%y_qgdp.csv   >nul
sltohta -sss -map=psw.map     arm_unil_%%x_%%y.sl4 csv\arm_%%x_%%y_psw.csv    >nul
sltohta -sss -map=pdw.map     arm_unil_%%x_%%y.sl4 csv\arm_%%x_%%y_pdw.csv    >nul
sltohta -sss -map=tot.map     arm_unil_%%x_%%y.sl4 csv\arm_%%x_%%y_tot.csv    >nul
sltohta -sss -map=qxwreg.map  arm_unil_%%x_%%y.sl4 csv\arm_%%x_%%y_qxwreg.csv >nul
sltohta -sss -map=qmwreg.map  arm_unil_%%x_%%y.sl4 csv\arm_%%x_%%y_qmwreg.csv >nul
)
)
)
cd ..\batch   