Open PL/I では、複合 SQL 文の開始後、末尾にセミコロンが必要です。次に例を示します。
exec sql begin compound atomic static; select count(*) into :tmp3 from department; select count(*) into :tmp4 from project; end compound;