Santhosh Appusamy
Santhosh Appusamy

Reputation: 29

How to get a list of programs that uses a particular command in AS400

I have a library MYLIB which consists of user defined commands and I want to find the programs which are all using the CMDs in that Library.

I'm planning to write a Utility but before that i wanted to confirm if there are any native utilities for this thing.

Upvotes: 1

Views: 411

Answers (1)

Charles
Charles

Reputation: 23813

In addition to the green screen FNDSTRPDM command mentioned in the comments...

I'll point out that both common IDEs used by IBM i developers, IBM's Rational Developer for i (RDi) and Microsoft's Visual Studio Code (w/Code For IBM i extension), include the ability to search source files for a given text string.

Lastly, a source file on the IBM i is simply a multi-membered DB table with a specific format; consisting of 3 columns.

Field      Type       Length  Length  Position
SRCSEQ     ZONED        6  2       6         1
SRCDAT     ZONED        6  0       6         7
SRCDTA     CHAR          100     100        13

SRCDTA can be shorter or longer than the 100 chars I've shown here. Just depends on what you've specified on CRTSRCPF. They can be read like any other table on the system.

Upvotes: 1

Related Questions