|
I am about to step into again I bet. I am unaware of any normal technique for physically inserting a record into a file. The only way I can imagine is to completely rewrite the original file into another file, adding the new record at the appropriate spot in the process. If the original file is small enough you can of course load the whole file into an array at the beginning of the job and then close, clear, open, and re-load the file at the end of the job. Manipulating the array itself becomes a trivial exercise. So far as I am aware physical files are in fact arrival-sequence files that may or may not have views of them in some logical ordering schema. -------------------------------------------- Booth Martin Boothm@Goddard.edu 802-454-8315 x235 -------------------------------------------- -------Original Message------- From: rpg400-l@midrange.com Date: Monday, October 22, 2001 09:43:34 AM To: 'rpg400-l@midrange.com' Subject: RE: Insert a record Yes, exactly. -----Original Message----- From: Booth Martin [mailto:Booth@MartinVT.com] Sent: Monday, October 22, 2001 8:39 AM To: rpg400-l@midrange.com Subject: Re: Insert a record "Insert" implies to me that you wish to place the new record in the midst of existing records? -------------------------------------------- Booth Martin Boothm@Goddard.edu 802-454-8315 x235 -------------------------------------------- -------Original Message------- From: rpg400-l@midrange.com Date: Monday, October 22, 2001 09:21:31 AM To: 'rpg400-l@midrange.com' Subject: Insert a record Is there a way to insert a record into a physical file using the relative record number? _______________________________________________ _______________________________________________
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.