* This first hour is special execute.checkErrorLevel 'gams opt_24h.gms lo=4'; execute.checkErrorLevel 'gams Dis_h1.gms lo=4'; scalar h; for (h=2 to 24, put_utility 'exec.checkErrorLevel' / 'gams Opt_Nh.gms --HOUR=' h:0:0 ' lo=4 fileStem=Opt_' h:0:0 'h'; put_utility 'exec.checkErrorLevel' / 'gams Dis_hN.gms --HOUR=' h:0:0 ' lo=4 fileStem=Dis_h' h:0:0; );