load3.gms : Test exec time loading with missing filter

Description

AB01028: We should get a compilation error since the domain d is empty
System 22.2 gave a runtime error.


Small Model of Type : GAMS


Category : GAMS Test library


Main file : load3.gms

$title 'Test exec time loading with missing filter' (LOAD3,SEQ=249)

$onText
AB01028: We should get a compilation error since the domain d is empty
System 22.2 gave a runtime error.
$offText

set i /i1, i2, i3/;
parameter A(i) /i1=1, i2=2, i3=3/;
$gdxOut test.gdx
$unLoad A I
$gdxOut

set d 'has no data';
parameter B(d);

* we should get a compile error here, not a runtime error
execute_load 'test.gdx', B=A;
$if errorfree $abort this should have give a compilation error
$clearError
$terminate