-----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: email@example.com +---
As an Amazon Associate we earn from qualifying purchases.
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.