Not sure if commercial software is an option for you, but our AS/400
Report Splitter product has a command that can be used to scan a spool
file for a selected string. There is also have a generic outq monitor
so you can build your own custom exits to call the spool file scan
process.
Short of that, write code to copy the spool file and scan the contents
of the file.
Regards,
Richard Schoen
RJS Software Systems Inc.
"Get the information you need. Now!"
Document Management, Workflow, Report Delivery, Forms and Business
Intelligence
Email: richard@xxxxxxxxxxxxxxx
Web Site:
http://www.rjssoftware.com
Tel: (952) 736-5800
Fax: (952) 736-5801
Toll Free: (888) RJSSOFT
-----Original Message-----
message: 2
date: Mon, 17 Aug 2009 15:28:04 +0530
from: Shijith Chand <shijith_c@xxxxxxxxxxx>
subject: Searching the spool file for string
Dear All,
I have a requirement where in I have to search all my spool
files for finding the occurence of a string.My program must generate a
report that contains the list of all spool files which has the string.
I could think of only one solution..do a CPYSPLF of given
spool file
into a file and search using FNDSTRPDM.
Any body who has tried a better way...or knows any API that does the
same.It would be of great help.
Thanks in advance,
S.Chand
As an Amazon Associate we earn from qualifying purchases.