But the main reason for writing is to give you an update to some software I submitted quite a few years ago, called temptab. I originally wrote it in 4GL, but have needed it since at a couple of customer sites where c4gl wasn't available, so rewrote it in perl. It produces more or less the same output, although it now includes a "Max Rows" column that shows the theoretical number of rows that could be in the temp table while it is building, (based on pages allocated / rows per page). Once the temp table is written, the actual number of rows is shown in the old rows column. ------ Richard Thomas