Add something like this to the pipeine: '? literal +30', '| dup *', '| delay', '| spec /FINIS * * A/ 1', '| command'
You can close just the file or the whole disk. And you can make the timing whatever you want. On Thu, Apr 30, 2009 at 10:09 AM, Bob Bates <robert.ba...@wellsfargo.com> wrote: > The file needs to be closed after the write in order to see them. Look at > FINIS (not much to it). > > > Bob Bates > Enterprise Hosting Services > > w. (469)892-6660 > c. (214) 907-5071 > > "This message may contain confidential and/or privileged information. If you > are not the addressee or authorized to receive this for the addressee, you > must not use, copy, disclose, or take any action based on this message or any > information herein. If you have received this message in error, please > advise the sender immediately by reply e-mail and delete this message. Thank > you for your cooperation." > > > > -----Original Message----- > From: The IBM z/VM Operating System [mailto:ib...@listserv.uark.edu] On > Behalf Of Thomas Kern > Sent: Thursday, April 30, 2009 9:06 AM > To: IBMVM@LISTSERV.UARK.EDU > Subject: Writing/Closing a file in a pipeline > > I have an exec with a pipeline that is listening on STARMSG *VMEVENT. Whe= n > it receives a LOGON record, it gets processed and additional information = is > added to the record. I would like the record to be written to a disk file= > > and that disk file be available for others to read via READ-ONLY links to= > > the minidisk. I have DISKSLOW as the file-writing stage now and when I st= op > the program (HVMEVENT or PIPMOD STOP), the file with the latest informati= on > is there, but when the program is running, I cannot see the file until th= e > process has been stopped at least once. Even after it has been stopped an= d > restarted, I cannot see the records received after the restart. > > What is the best practice for writing a logfile from a pipeline such that= > > the latest record is available for read-only viewing as soon as possible?= > > > /Tom Kern > -- Bruce Hayden Linux on System z Advanced Technical Support IBM, Endicott, NY