I was asked how it was possible to use a string within a spool file as the file name when it was copied to the IFS as a PDF. I have written in separate posts the parts that would be needed to achieve this, and this post will pull it all together.
In my scenario I have spool files of invoices. I want to copy these to create individual PDFs in an IFS folder.
I created a simple RPG program to create a couple of “invoice” spool files. These invoices were generated using the QSYSPRT printer file, and the user data of INVOICE. They both had the same layout, the only difference being the invoice number itself. For example:
+
+
+
Invoice : 81719
+
+
+
Read more »