Stuart,
While I run the below query, i am getting an error message "** One or more END statements is missing. (246)"
FOR EACH sector WHERE sector.latest-dep-date >= 08/06/09
AND sector.latest-dep-date <= 08/01/09 and sector.serial = 'EAA' and can-do('0265,0568,0489',sector.flight-no)...