|
RE: OPNQRYF question: how to build format without mapping each field Hmm, I'm not sure why I thought that. Maybe because you mentioned the CPYFRMQRYF command and I thought you'd gotten that far. Let's see, for the OPNQRYF FORMAT parameter the manual says: FORMAT Specifies the record format used for records made available by using the OPNQRYF command. The simple field names in the open query file record format must represent fields that are either defined on the MAPFLD parameter or are unique across all files, members, and record formats specified on the FILE parameter. So you're doing an opnqryf that joins the DSPFD & DSPOBJD outfiles? And you've created a physical file with the fields from both those outfiles which you are using as your format file? If that's the case, it should work, because all the fields in the format file would be defined by one of the input files. If you're trying to do two opnqryf's, one for the DSPFD, then one for the DSPOBJD, then don't use the format file, let the cpyfrmqryf do the mapping. HTH Peter Dow Dow Software Services, Inc. 909 425-0194 voice 909 425-0196 fax < From: Stone, Joel Thanks for the reply. Why do you think I and not using the FORMAT parameter? Anyways, that is what I am doing - trying to make the outfiles of DSPFD and DSPOBJD the same format. I build the DSPFD file first, then add records from the DSPOBJD to the end of the outfile. It never gets to CPYFRMQRYF because it abends at the OPNQRYF unless I map a default value into each field in the format file! > +--- | 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 +--- __________________________________________________ Do You Yahoo!? Thousands of Stores. Millions of Products. All in one place. Yahoo! Shopping: http://shopping.yahoo.com +--- | 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 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.