A semantic error (error type SEM) occurs if semantic conditions do not comply with the requirements of Benchmark Description Language.
If you use an undeclared variable ("i" in the example below), compilation is aborted and an error message is displayed:
46 dcltrans
47 transaction TMain
48 var
49 artname : string(40);
50 artno, price : number;
51 result set c1;
52 begin
53 writeln; write("transaction TMain:"); writeln;
54 c1: SelArticle(out artno, price, artname);
56 write("rows found: "); write(rows(c1));
57 fetch c1 all;
58 for i:
compile error SEM 12: variable is not declared --- compilation was not successful ---