SQLPlus Spool Incomplete

I'm trying to run this script to output index rebuild commands for some of the indexes.
spool rebuild_index_list

select 'alter index '||owner||'.'||index_name ||' rebuild parallel 4 compute statistics;'
from dba_indexes
where (dba_indexes.owner = 'BBS'
and dba_indexes.num_rows >= 3000000 );
select 'alter index '||owner||'.'||index_name ||' rebuild parallel 4 compute statistics;'
from dba_indexes
where (dba_indexes.owner like '%CMS%'
and dba_indexes.num_rows >= 3000000 );
rebuild_index_list
All the returned rows show up on the display, but when i look in the spool file ,rebuild_index_list, only part of the first query in included and none of the second, CMS,
shows.
What do I need to do to get all the result set into the spool file?
~
~
~
~