This IBM command may do what you want. Just run it over all the source files you need to check. There are lots of choices for the OPTION parm. I just used *PRT as an illustration.
FNDSTRPDM STRING(FILENAME)
FILE(QRPGLESRC)
MBR(*ALL)
OPTION(*PRT)
Here is some code for my FNDSRC command.
It searches all Q* files on the system for a member and then uses WRKMBRPDM to display all of them. You can easily modify this to get what you need.
*
You should post you work here or what you have tried to do. This sounds like a homework question. I'm only saying this because you don't say what you tried to do before asking us for help.
The Most-Watched IT Questions: March 1, 2011 - ITKE Community Blog
[...] 5. CharlieBrowne gave some pointers on when to use the D Spec on DS in AS/400. 6. WoodEngineer and CharlieBrowne gave some code suggestions for finding a string in AS/400 library. [...]
Free Guide: Managing storage for virtual environments
Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!
Discuss This Question: 5  Replies