Agreed; I did not spell out all the details, silly me. close(old) rename(old) open(new)
Peter -----Original Message----- From: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> On Behalf Of Paul Gilmartin Sent: Sunday, June 19, 2022 4:00 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Some UNIX file usage questions On Sun, 19 Jun 2022 19:45:49 +0000, Farley, Peter x23353 wrote: > ... >For discretely split data files (stop writing at EOD/end-of-period and start a >new file) using the same approach as the unix syslog demon would seem to be >useful. Rename current to current-plus-timed-qualifier (date and/or time), > close(); open(); Otherwise you continue writing to the renamed file. > ... write new with initial data, proceed as before. -- This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential. If the reader of the message is not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail and delete the message and any attachments from your system. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN