Looking for relevant AS/400 Whitepapers? Visit the Search400.com Research Library.
It doubts | Apr 11 2008 4:03AM GMT
hi,
i am having a pf in that pf contain many members, using display file i have to search a perticular string in all the members if it is found these matching records want to write into another file this is my requirement. in CL grogram how to do this? using FNDSTRPDM can we do that, please replay me
if any other solution please send me with example.
TSCHMITZ | Apr 24 2008 2:34PM GMT
One solution could be to :
1) Retrieve the list of members of your PF using DSPFD OUTPUT(*OUTFILE) TYPE(*MBRLIST) OUTFILE(yourlib/yourfile)
2) Declare this Outfile inside on CL with DCLF.
3) Read the file until eof
4) For each record : Override your Source PF to member (&MLNAME)
5) Run a RPGILE program that browse your member, and use %SCAN inside the single record fields to cehck matching.