Sie sind auf Seite 1von 7

FINDSTRING For AS/400

By
Atom Kumar Padhy
Table of Contents

1. Introduction..................................................................................................................... 3
2. Program High Level Logic ............................................................................................. 4
3. Program Functioning ...................................................................................................... 5

2
1. Introduction

 FINDSTRING is a IBMI utility to search multiple strings in multiple source files.


 You can run the search in batch mode or Interactive mode.
 The output results of the utility is stored in a database file and which can be saved
for future reference and can be queried upon.
 You can save your input search parameters for future reference as well.
 It’s a very handy utility which helps you run a lot of scans for analysis purposes -
All at one time which otherwise you would have had to run individually once for
each string on each source file.

3
2. Program High Level Logic
1. The tool uses a series of native FNDSTRPDM command to scan for all the input
strings on all the source files specified.
2. The output spooled file from FNDSTRPDM is refined and copied to a database
file for future reference and querying purposes.

4
3. Program Functioning
Command FINDSTRING launches the Find String Utility’s first screen as shown below.

You enter the list of search strings here on this screen and hit F10. Then You get the
second panel where you enter the list of source files whose members are scanned for the
given strings.

5
On Hitting F10 next You see the prompt where you enter you choice to run the search in
batch or interactive mode.

The program runs a series of FNDSTRPDM commands and then refines and stores the
output in a database file in QTEMP. The output file is then queried upon and displayed
on the screen.

6
Before navigating out of the results screen, it prompts you for you choice if you want oto
save the results.
If you choose to, then it saves the search results in your library in the database file named
FNDSTROP.
If you want to save the input search parameters (you would need this if you have keyed in
a huge list of strings or source files), you should run the program in batch mode when
prompted. This saves the input parameters in your library and next time when you run the
command, they appear in the input screens.

Das könnte Ihnen auch gefallen