SELECT TheAliasIWant * This scan loop will attempt to lock each record until is gets one it can lock, * then it locks that record and exits the loop. If cannot lock any records the * loop will end when all records have bee tried, then the IF after the endscan * will find that the current record is NOT locked by this station and you can * act appropriately. SCAN WHILE NOT RLOCK() ENDSCAN IF IsRlocked() * We locked a record ELSE * We did not find a record we could lock ENDIF