• Subject: RE: OPNQRYF - join identical files w/o MAPFLDs???
  • From: "Shaw, David" <dshaw@xxxxxxxxxxx>
  • Date: Mon, 22 Jan 2001 15:24:19 -0500

-----Original Message-----
From: Shea, David [mailto:DShea@arctools.com]

I'm attempting an OPNQRYF with two identical files in different libraries.
The record formats are identical, as are the field names.  I am joining the
files based on a couple fields.  I am telling the opnqryf to use one of the
record formats from one of the files.

The OPNQRYF command bombs because it wants the MAPFLD parameter specified.
Since the two files are identical, there are LOTS of duplicate file names.

Is there any way of getting around specifying a MAPFLD for each and every
field in the file?  First, that would be a pain in the ...neck... and
second, it's limited to 50 fields.

Any ideas?
-------------------------------------------------------

Unfortunately, I don't think that there is using OPNQRYF by itself.  If
MAPFLD won't do it because of the 50 field limitation, an alternative is to
create a join logical file.  This would give you a lot more flexibility in
your record format, too - you could leave out fields that you don't need,
etc.  If you still want to use OPNQRYF for record selection or sorting, you
can use it directly on the logical.

Dave Shaw
Spartan International, Inc.
Spartanburg, SC
---
If you would like to subscribe to the MAPICS-L mailing list send email to
MAPICS-L-SUB@midrange.com or go to www.midrange.com and follow the
instructions.
+---
| 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-2022 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.