|
Well, not exactly, but sort of, and it sounds like you got the general idea<g>. You have a sequence in your input files that matches fields from each and you want to group them together. Like in your program, after naming your comparison fields in the I-specs, you'd just test for *INMR = *OFF *AND test for the secondary file input record, and then you'd have your non-matching record (in the primary file).I think I understand. When you say it reads all recs from primary, and then from secondary, I assume you mean that all files are read from on each loop through. A free format equivalent (minus record blocking) would look like this:
Dow Not %EOF(primary)
Read primary;
Read secondary;
// Calc specs
EndDo;
- Alan
Right? This might be interesting to try, although having seven pairs of files to compare/synchronize, I would have to write seven programs.
Seven? You're probably better off avoiding the cycle anyway in this case.
With primary and secondary and the proper specifications on the input specs, the cycle would take care of that for you. If you only want to process the records that match, you'd use the matching records indicator.But if it is faster, I might try it.
One last question. There is a possibility that a record might be
missing from either file, causing the synchronization of the input
streams to be out of whack. If this is the case, Can I issue a READ op in the calc specs to either file to re-synch the files?
- Alan
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.