I agree that you can search on GOOGLE and you could get some free ideas about how to do this. You may use APIs or other little tricks like:
a) WRKSPLF SELECT(*CURRENT) OUTPUT(*PRINT)
b) CPYSPLF FILE(QPRTSPLF) TOFILE(MYLIBRARY/MYFILE) JOB(JOBNO/JOBUSRID/JOBNAME)
c) With a program you can read the spooled file created on step "a".
d) The report has spooled file name, job name, job user id, file number and job number, as well as the creation date and time. So, you can
1) Calculate - in the program - what is 30 days in the past and based on that
2) Call a 2nd program and send the required parameters - maybe use the DLTSPLF command (DLTSPLF FILE(SPOOLFILE) JOB(JOBNO/JOBUSRID/JOBNAME) SPLNBR(FILENO))
e) You can run the program on step "c" until EOF is reached.
Some coding is required but I do not believe is impossible. However, if I can "invoke the *SPENDMONEY command" it will be awesome to have the TAATOOLS in your shop.
Just a suggestion.
Peter Vidal| SR Technical Specialist | P: 800-808-1902 x 137210
This communication is intended only for the use of the individual or entity named as the addressee. It may contain information which is privileged and/or confidential under applicable law. If you are not the intended recipient or such recipient's employee or agent, you are hereby notified that any dissemination, copy or disclosure of this communication is strictly prohibited. If you have received this communication in error, please immediately notify CareCentrix Compliance Hot Line at (877) 848-8229 and notify the sender by electronic mail. Please expunge this communication without making any copies. Thank you for your cooperation.