if (age not eq agecheck or time not eq 3) and error eq 1 then Test=1;
Test
Copyright © 2002 SAS Institute Inc., Cary, NC, USA. All rights reserved.