The CLOSE statement has the form
CLOSE device,modifier
where ERR=statement-number and STATUS='KEEP' or STATUS='DELETE' are the possible modifiers.