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.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.