// after a get statement, test for no record found
get myRecord01;
if ( myRecord01 is noRecordFound )
// respond
end
// in relation to a get statement with a next option,
// test for end of file
get next myRecord02;
while ( myRecord02 not endOfFile )
// process the record
get next myRecord02;
end
if ( sysVar.sqldata.sqlcode == 100 )
// respond
end
詳しくは、『例外処理』を参照してください。