|
Hi Troy, I'm sorry I didn't post this sooner. For future reference, you can call this Hawkeye command from the command line (it's DSPSCNSRC). If you prompt it, you'll find that it will allow you to search for multiple strings (up to ten, IIRC), you can restrict the search to only certain columns, and you can direct the results to an output file using either *REPLACE or *ADD options. For your project, you might want to: a) start with a file containing the names & libraries of your source files (others have suggested using a DSP* command for this, which works great) b) create a dummy output file for your results (use DSPSCNSRC once on anything; then clear the file) c) create a CL (or RPG(LE) if you prefer :-) to loop through your source file names & do the DSPSCNSRC command on each one, adding the results to your output file (be sure to monitor for errors, since if the search doesn't find anything it throws an error) You'll then have an output file with source file, source library, source member, sequence number, and statement for all the source statements containing the info you want. I've used this technique quite a bit, and it works pretty well (reasonably fast, etc.) Good luck, rpg400-l@midrange.com writes: >Thanks Ken > >I tried that and it didn't work (I may have hit something wrong). >I did find an alternative way to do it and it doesn't take that >long although I'm sure Hawkeye could still do it faster, but >Thanks anyway. > >TIA >Troy Dills >Programmer >RPGIV V5R1 >Julius Blum Inc. Mike Naughton Senior Programmer/Analyst Judd Wire, Inc. 124 Turnpike Road Turners Falls, MA 01376 413-863-4357 x444 mnaughton@juddwire.com
As an Amazon Associate we earn from qualifying purchases.
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.