SQLSr5 : Sequence of GAMS models using save/restart facility
This program calls a number of GAMS programs. Each program performs one task in the given sequence:
Data extraction --> Data manipulation --> Model definition --> Model solution --> Report writing
Data extraction
Files: Transportation.mdb SQLSr0.gms Sr1.gms Sr2.gms Sr3.gms Sr4.gms SQLSr5.gms
$ontext
This program calls a number of GAMS programs. Each program performs one task in the given sequence:
Data extraction --> Data manipulation --> Model definition --> Model solution --> Report writing
$offtext
*Data extraction
execute '=gams.exe SQLSr0 lo=3 save=s0';
abort$errorlevel "step 0 failed";
*Data manipulation
execute '=gams.exe Sr1 lo=3 restart=s0 save=s1';
abort$errorlevel "step 1 failed";
*Model definition
execute '=gams.exe Sr2 lo=3 restart=s1 save=s2';
abort$errorlevel "step 2 failed";
*Model solution
execute '=gams.exe Sr3 lo=3 restart=s2 save=s3';
abort$errorlevel "step 3 failed";
*Report writing
execute '=gams.exe Sr4 lo=3 restart=s3';
abort$errorlevel "step 4 failed";