Description
Trailing or leading blanks in the GDX environment variables caused the automatically translation via gdxcopy to fail. There was no indication why the gdxcopy failed, other than a usage screen. In GAMS we have to work hard to get a trailing blank, in shell script this error is easily made.
Small Model of Type : GAMS
Category : GAMS Test library
Main file : gdxcopy5.gms
$title Test GDX environment variables with trailing blanks (GDXCOPY5,SEQ=451)
$onText
Trailing or leading blanks in the GDX environment variables caused
the automatically translation via gdxcopy to fail. There was no indication
why the gdxcopy failed, other than a usage screen.
In GAMS we have to work hard to get a trailing blank, in shell script
this error is easily made.
$offText
$ifI %system.platform% == DEX $exit No V6 GDX exists for this platform
$ifI %system.platform% == DAX $exit No V6 GDX exists for this platform
$setEnv GDXCONVERT "v6 "
$setEnv GDXCOMPRESS "1 "
set dummy /1/;
* This will trigger an execution error in GAMS23.2 and previous
execute_unload 'dummy.gdx', dummy;