0% found this document useful (0 votes)
1K views

Findstring For As/400: by Atom Kumar Padhy

This document describes the FINDSTRING utility for the AS/400 system. It allows users to search multiple strings across multiple source files. The utility runs the searches in batch mode or interactively and stores the output results in a database file for future querying. It provides a handy way to run many scans for analysis purposes at once instead of running individual searches. The high-level logic involves using native commands to scan files for strings and refining/copying the output to a database. Users enter search strings, source files, and choose an execution mode to start the search and view results.

Uploaded by

Atom K Padhy
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1K views

Findstring For As/400: by Atom Kumar Padhy

This document describes the FINDSTRING utility for the AS/400 system. It allows users to search multiple strings across multiple source files. The utility runs the searches in batch mode or interactively and stores the output results in a database file for future querying. It provides a handy way to run many scans for analysis purposes at once instead of running individual searches. The high-level logic involves using native commands to scan files for strings and refining/copying the output to a database. Users enter search strings, source files, and choose an execution mode to start the search and view results.

Uploaded by

Atom K Padhy
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 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.

You might also like