
Update Novmber 23, 2022: Simplification of the values I can use for the parameters, see here.
Several years ago I wrote about how to convert spool files to PDF in the IFS. It still remains one of the most popular posts in this blog. With the latest round of Technology Refreshes for 7.4 and 7.3 there is now a way I can generate PDF from spool files using SQL.
I have several spool files I can see using the Work With Spool Files command, WRKSPLF:
Work with All Spooled Files Opt File User Queue User Data Sts _ QPRTSPLQ SIMON MYOUTQ RDY _ QSYSPRT SIMON MYOUTQ Testing RDY _ QPQUPRFIL SIMON MYOUTQ RDY _ QSYSPRT SIMON MYOUTQ RDY |
I can get the same information using SQL too using the View OUTPUT_QUEUE_ENTRIES_BASIC, which gives me a subset of the columns that are available in OUTPUT_QUEUE_ENTRIES, which makes it faster to return the results: