The post provides a way to build any name for a spool file on a fly while a SQL script is executing.