Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Spool File Scan Utility

Status
Not open for further replies.

JesseH

MIS
Aug 9, 2001
63
0
0
US
We have hundreds of spool files that we need to scan to find a particular string. Is there any utility that can scan all the spool files in an outqueue for a string?

Thanks
 
I've never come across the utility you are looking for but CPYSPLF might do the trick. Create a simple CL program to do the following:
Use WRKOUTQ to print the contents of the OUTQ. Use CPYFSPLF to copy this spooled file to a database file F1. Use a loop to RCVF F1 and programatically get the contents of the OUTQ. Using the details so retrieved, repeat the CPYSPLF process to dump each SPLF to a database file F2. Use QUERY or SQL to scan F2 for the string. Hope this helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top