|
Hi Jim - >Date: Mon, 03 Jul 2000 08:34:38 -0700 >From: Jim Langston <jlangston@conexfreight.com> >Subject: Re: S36 Index Sort and Record Not Found > >This is an alternative, but wouldn't I have to change both the OCL and >RPG program to read from the logical instead of the index file? > >An alternative I have considered is building a logical file, and change it >to MAINT(*RBLD) or MAINT(*DELAY) just so the system doesn't >have to use so many resources to maintain it. Then I would have to >change the RPG program to read this file instead of the CMFile and >the index file. Probably the least invasive alternative is change from SORTA to SORTR with the option to drop control fields. Make the other necessary changes in the sort H spec. Then define a 448 byte data field to cover the entire record. In the RPG, remove CMFILE. Make ASCM1540 the primary file, with a record length of 448 read by arrival sequence. Remove the E spec that tied the files together. In the I specs, change CMFILE to ASCM1540. Caveat ... with this method, any records that existed when the sort was done will be processed by the RPG program, even if they have been deleted in the interim. Ken Southern Wine and Spirits of Nevada, Inc. Opinions expressed are my own and do not necessarily represent the views of my employer or anyone in their right mind. +--- | This is the RPG/400 Mailing List! | To submit a new message, send your mail to RPG400-L@midrange.com. | To subscribe to this list send email to RPG400-L-SUB@midrange.com. | To unsubscribe from this list send email to RPG400-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.