|
There, I think I've said it in the title: I am trying to apply changes from a journal receiver. I cannot use APYJRNE or whatever as we have stripped out only the bare essentials and compressed these for transmission to our disaster recovery machine. The problem which is occuring very infrequently is that in a file which re-uses deleted records, I sometimes see that the source system has added a record to the end of file even though a deleted record was available for re-use. Due to the infrequency of the problem I can only guess that this is due to the number of jobs concurrently updating this large master file. In RPG I can easily tell the target machine to re-use a specific record by accessing by RRN. Problem comes when I am trying to add to the end of the file as indicated by the RRN on the journal. The target system now insists on using the available deleted space if there is any. eg: Record 1: In use Record 2: Deleted Record 3: In use Journal says record added to RRN 4. How can I force the record to be written to this position without specifying the target file as REUSEDLT(*NO). We have constructed a "messy" work around which involves filling up the deleted space, adding the record, and then re-deleting, but a single instruction to "Add to end of file regardless of deleted records" would obviously be preferable. Any help would be appreciated Tony Smithurst * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This is the RPG/400 Discussion Mailing List! To submit a new * * message, send your mail to "RPG400-L@midrange.com". To unsubscribe * * from this list send email to MAJORDOMO@midrange.com and specify * * 'unsubscribe RPG400-L' in the body of your message. 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.