Thank you Connor.
You sent me in the right direction.
Here is my final solution (Statement #2):
https://livesql.oracle.com/apex/livesql/file/content_F585VFOS8X30ZZO1VMV5JYNGA.html select dbms_xmlgen.convert(xmlagg(xmlelement(e, rpad(' ', 5)
|| '||'
|| ' ''123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354x'' -- '
|| lpad(trim(to_char(q1.f1)), 3, '0')
|| '.'
|| chr(10))).extract('//text()').getclobval(), 1) f1
from (select level f1
from dual
connect by level < 51) q1
/