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.
In addition to the green screen
FNDSTRPDMcommand 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.
SRCDTAcan be shorter or longer than the 100 chars I've shown here. Just depends on what you've specified onCRTSRCPF. They can be read like any other table on the system.