This function is used to stop the generation of spool files and automatically close the spool file.
#define INCL_SPL #include <OS2.H> HSPL hspl; /* spooler handle. */ SplQmAbort(hspl);