ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Source member search utility needed

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Source member search utility needed

    Not sure which forum to put this in but here goes. I have a list in a DB file of source members that I need to search to see if they contain "WORKSTN" in position 36-42. I would like the output to be a list of the members in which WORKSTN" is found. The output can be a printed list or another file. I don't want each source member printed. What is the best way to proceed

  • #2
    I had written something years ago that would Read a database.
    Run FNDSTRPDM .. PRTMBRLIST(*YES)
    Copy the Spool File to a Physical File.

    Call a RPGLE Program to search for the tet "No members')
    If "No Members" were found, delete the spool file.

    So, once I was done.. I only had the spool files that contained the text I was looking for.

    I can send it to you... but dont judge the code, its about 17 years old.

    Comment


    • #3
      Why not simply use the "Find String" option in RDi? Right-click the source file, select "Find String".

      Kit
      www.ecofitonline.com
      DeskfIT - ChangefIT - XrefIT
      Regards

      Kit
      http://www.ecofitonline.com
      DeskfIT - ChangefIT - XrefIT
      ___________________________________
      There are only 3 kinds of people -
      Those that can count and those that can't.

      Comment

      Working...
      X