RPG III – that would be SCAN
C FLDA SCAN FLDB FLDC 5 0
flda – desired value
fldb – Field from the file
fldc – numeric position where field is found
Ankush Chaudhary (Comments)
I feel you are to search for a string in a members of a source file.
Then the only option availableis FNDSTRPDM command.
You can write in a CL program for doing this search or just use F13 and with option 25 you can use the builtin command FNDSTRPDM command.
Please revert to me for more clarifications