I am using JT400 to search our AS400 system for a specific pre-existing spool file based on the following parameters:
- Username
- File name
- Date created (ability to use date range as well)
How would I go about this?
If I create a new SpooledFile using the constructor, I would need information that is not readily available to the program I am building (job name, job number, spool file number).
Can I get the output queue of the specific user and loop through all the spool files therein until I get one that satisfies the given parameters (User, File Name, Date)?
End goal: I run the program with input parameters, the program finds the spool file based on parameters, and then saves a PDF copy to the local machine.