AS400 STRING SEARCH

How i am able to get all the source file member names (not in spooled file) where a particular string 'XXXXX' is used??
kishore murarisettyAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Theo KouwenhovenApplication ConsultantCommented:
Open a green screen:
Create an outputfile
e.g. CRTPF FILE(QTEMP/OUTPUT) RCDLEN(132)

Do an override to this file:

OVRPRTF FILE(QPUOPRTF)        
        TOFILE(QTEMP/OUTPUT)  
        SECURE(*YES)          
        OVRSCOPE(*JOB)        

start pdm and select all sourcefiles :
WRKOBJPDM LIB(MYLIB)            
          OBJTYPE(*FILE)        
          OBJATR('PF-SRC')      

Use option 25 to find what you need (and set "Print list" to yes)

Now your file contain all search info
Just filter on Pos(39) = ":" to get all member info

A second option (more work but more flexible)
We run an analyser tool that copies (periodically) all members from all libraries to a Table.
A lot of SQL functions are available to scan the file.

Layout
Library(10)
File(10)
Member(10)
SourceSeq(6.2)
SourceDate(6.0)
SourceLine(198)

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Theo KouwenhovenApplication ConsultantCommented:
Only solution in 4 month
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
IBM System i

From novice to tech pro — start learning today.