https://blog.faq400.com/en/db2-for-i/sql-en/reading-spool-files-with-sql/
Reading spool files with SQL