load6.gms : Tests dynamic error messages during $loadDC

Description

The error makes nice gams names but the UELs may not have been
loaded and the error message needs to load the strings.

Contributor: Alex


Small Model of Type : GAMS


Category : GAMS Test library


Main file : load6.gms

$title Tests dynamic error messages during $loadDC (LOAD6,SEQ=529)

$onText
The error makes nice gams names but the UELs may not have been
loaded and the error message needs to load the strings.

Contributor: Alex
$offText

$onEcho > test.gms
$onUNDF
set i / u1*u23 /;
parameter a(i) / u5*u20 undf, u21 na, u22 3 /
          s    / undf /;
$gdxOut test.gdx
$unLoad a s
$gdxOut
$offEcho

$call gams test.gms lo=2
$if errorlevel 1 $abort

parameter a1,a2,s1,s2;
$gdxIn test
$loadDC a1=a s1=s
$if errorfree $abort we should have errors
$clearError
$onUNDF
$load a2=a s2=s
$if NOT errorfree $abort we should have NO errors
display a1,a2,s1,s2;