Question

  Asked: Apr 10 2008   12:24 AM GMT
  Asked by: It doubts


How to retrive a perticular string details from all the members of file using FNDSTRPDM


CLLE, FNDSTRPDM

please send me an example program to retrive a perticular string details from all the members of file using FNDSTRPDM.

Subscribe to Alerts! Get questions and answers delivered to your Inbox.


E-mail me updates on this question



   SUBSCRIBE

hidden modal window

Answer Wiki (Improve, edit or add to this answer)


 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0




Hi,

Using FNDSTRPDM you can only find the string, there's no way to retrieve the string using this command. You can print a list of the records that you find using the command.

Regards,

Martin Gilbert.
  • AddThis Social Bookmark Button

Browse more Questions and Answers on AS/400.

Looking for relevant AS/400 Whitepapers? Visit the Search400.com Research Library.


Discuss This Answer


You must be logged-in to discuss a question. Log-in/Register

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.