On Thu, Nov 30, 2023 at 03:09 PM, Bob Polmanter wrote:
CP SPOOL CONSOLE TO userid START
and the very last statement should be:
CP SPOOL CONSOLE STOP CLOSE
I wonder if it is necessary to explicitly START/STOP CLOSE. For sure I never did. :-) All my batch jobs starts with the statements:
/JOB userid 1234 jobname
CP SPOOL CONSOLE TO userid
CP SPOOL PRINTER TO userid
The spool console output is sent back to userid in a file of class T, while whatever is printed is sent in an other file of class A. Then I examine the content of those with the SFBROWSE command and choose to purge/print the content with subcommands purge/print of SFBROWSE. I also make sure one of the "real" printers handles class T.
Cheers,
Rene FERLAND, Montreal