× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: RE: Finding the right member in a MMF
  • From: bmorris@xxxxxxxxxx
  • Date: Tue, 20 Jun 2000 15:00:44 -0400




>Date: Tue, 20 Jun 2000 08:45:38 -0500
>From: Brad McDaniel <BMCDANIEL@ABSBC.ORG>
>
>I like the suggestions about using *PRT, and then copying the spooled file
>to a file for processing, but the MMF I'm trying to do a FNDSTRMBR on is a
>data file, not a source file, and *PRT is not allowed with a data file.  I
>got this message in the joblog:
>
>  2700 - FNDSTRPDM STRING('0000423987') FILE(ACHBTRNPF) MBR(*ALL)
>  OPTION(*PRT *NOPROMPT)
>Find string option *PRT is not allowed for data physical files.
>Error while processing the FNDSTRPDM command.
>
>Back to the drawing board...

Brad, here's how to get FNDSTRPDM to do what you want:
1. create a program that takes parameters (lib file mbr) and have
   it write this information to a file
3. create a PDM option, say CC, to call the program with parm &L &F &N
2. use FNDSTRPDM STRING('0000423987') FILE(ACHBTRNPF) MBR(*ALL) OPTION(CC)

PDM will call your program for each member that it finds matching the
string,
and when it's done, the file will have the member list.

A better (by a factor of a million) approach would be to forget about the
member list, and have the called program go ahead and process the member.
(If you really want a member list, get the called program to ALSO write
the members out to a file.)

Barbara Morris


+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.