|
I would think the easiest way would be with CPYFs. On Wed, 12 May 2004 14:44:39 +0100, "McCallion, Martin" <martin.mccallion@xxxxxxxxx> said: > oliver.wenzel@xxxxxxxxxxxxxxxxxxxxxxx wrote > > > one customer requires us to ftp a file with header/footer > > records, so he > > can see if the transfer > > is complete. > > > > What is the easiest way to insert a record at *top* of a > > physical file > > (without keys). Manually, > > I create an empty file with a header record, then copy the > > actual file > > with *add, and then do the > > footer record. > > Short of writing a program to read and write all the records, I can't > think > of another way. However, perhaps you could convince your customer to > accept > an alternative solution. Instead of marker records _in_ the file (which > would have to be removed by whatever application processes the file, > adding > complexity) write a pair of marker _files_. They wouldn't have to have > any > data, just suitable names. So your FTP script might have lines like > this: > > put FTPSTART > put DATAFILE > put FTPFINISH > > You might want to delete them first if they are already there, but if > not, > then their timestamps would show when the process last ran. > > Cheers, > > Martin. > > -- > Martin McCallion > Senior Technical Consultant > Misys Wholesale Banking Systems > 1 St George's Road, London, SW19 4DR, UK > T +44 (0)20 8486 1951 > F +44 (0) 20 8947 3373 > martin.mccallion@xxxxxxxxx > www.misys.com > > This email and any attachments have been scanned for known viruses using > multiple scanners. We believe that this email and any attachments are > virus > free, however the recipient must take full responsibility for virus > checking. This email message is intended for the named recipient only. It > may be privileged and/or confidential. If you are not the intended named > recipient of this email then you should not copy it or use it for any > purpose, nor disclose its contents to any other person. You should > contact > the Misys Banking and Securities Division as shown below so that we can > take > appropriate action at no cost to yourself. > > Misys Banking and Securities Division, 1 St George's Road, Wimbledon, > London, SW19 4DR, England. Email: banking.postmaster@xxxxxxxxxx Tel: +44 > (0) > 20 8879 1188 Fax: +44 (0) 20 8947 3373 > _______________________________________________ > This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing > list > To post a message email: MIDRANGE-L@xxxxxxxxxxxx > To subscribe, unsubscribe, or change list options, > visit: http://lists.midrange.com/mailman/listinfo/midrange-l > or email: MIDRANGE-L-request@xxxxxxxxxxxx > Before posting, please take a moment to review the archives > at http://archive.midrange.com/midrange-l. > -- michaelr_41@xxxxxxxxxxxxxx -- http://www.fastmail.fm - Accessible with your email software or over the web
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.