An example way to do this is with OVRPRTF USRDTA(<mydata>). You might put a program name into the user data or an application name or any other identifying string. Different strings could be associated with different functions.

Once that’s done in your programming. you can use the USRDTA() value in WRKSPLF to list only those spooled files. If it’s combined with appropriate form types, spooled file names and users’ names, it’s very easy to create lists that have only what you need.

You might also consider using iSeries Navigator to bring up lists of spooled files. That has a lot more functionality than WRKSPLF. If iSeries Navigator is too heavy for you, there is also WRKSPLF.EXE in your iSeries Access /Program Files directory. Lighter weight, and just about as configurable.