Get the WHERE clause.
   call send(datid, '_getWhere', listid);
   call putlist(listid, 'WHERE List=', 0);
   listid=dellist(listid);
 return;