
set cmf=GTAPv7_arm_tms_bil_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 (Oceania EastAsia SEAsia SouthAsia NAmerica LatinAmer EU_28 MENA SSA RestofWorld) do (
for %%z in (1 2 3 4 5 6 7 8 9 10) do (
cd ..\batch   
..\tab\%code%  -cmf ..\cmf\%cmf%.cmf -p1=%%x -p2=%%y -p3=%%z >nul
cd ..\sol      
sltohta -sss -map=u.map       arm_%%x_%%y_%%z.sl4 csv\arm_%%x_%%y_%%z_u.csv      >nul
sltohta -sss -map=qgdp.map    arm_%%x_%%y_%%z.sl4 csv\arm_%%x_%%y_%%z_qgdp.csv   >nul
sltohta -sss -map=psw.map     arm_%%x_%%y_%%z.sl4 csv\arm_%%x_%%y_%%z_psw.csv    >nul
sltohta -sss -map=pdw.map     arm_%%x_%%y_%%z.sl4 csv\arm_%%x_%%y_%%z_pdw.csv    >nul
sltohta -sss -map=tot.map     arm_%%x_%%y_%%z.sl4 csv\arm_%%x_%%y_%%z_tot.csv    >nul
sltohta -sss -map=qxwreg.map  arm_%%x_%%y_%%z.sl4 csv\arm_%%x_%%y_%%z_qxwreg.csv >nul
sltohta -sss -map=qmwreg.map  arm_%%x_%%y_%%z.sl4 csv\arm_%%x_%%y_%%z_qmwreg.csv >nul
)
)
)
cd ..\batch   

::for %%x in (Oceania) do (
::for %%y in (Oceania) do (
::for %%z in (1 2) do (
