I am not that familiar with command line code as access has been restricted and converted to screen options so forgive me.
The task is every month I need to delete specific spool files > 9 months old with specific form type.
Originally my thoughts were to:
Create formatted file to copy the five spool files into
Use query function to select the files that meet the date and form criteria for deletion.
Code the CL to perform delete function.
In a test environment with command line access I first tried WRKOUTQ OUTQ(LIBRARY_NAME/OUTPUT_QUEUE_NAME) OUTPUT(*PRINT)
b. CPYSPLF FILE(QPRTSPLQ) TOFILE(LIBRARY_NAME/file previously created) SPLNBR(*LAST)
All went well until I need to copy the second spool file using (a) then append to (b), it just wasn’t working.
So my question would be:
If I have a list of spool files such as:
How can I copy all of the spool files and then copy them into the file I created and formatted (Library/SpoolDele)?
I appreciate any help and apologize for be such a novice, but I am just trying to make make workload a little easier.
Free Guide: Managing storage for virtual environments
Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!