From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,ab120e0e8ee38d3d X-Google-Attributes: gidf7344,public X-Google-Thread: f73f6,ab120e0e8ee38d3d X-Google-Attributes: gidf73f6,public X-Google-Thread: f86d6,ab120e0e8ee38d3d X-Google-Attributes: gidf86d6,public X-Google-Thread: fc7fa,ab120e0e8ee38d3d X-Google-Attributes: gidfc7fa,public From: vandenheuvel@eps.enet.dec.c*m (Hein RMS van den Heuvel) Subject: Re: How does one read from and write to a mailbox in DCL? Date: 1997/09/06 Message-ID: <5uqlf2$vcs@usenet.pa.dec.com>#1/1 X-Deja-AN: 270349792 References: <340F11CE.702A2B52@bankofny.com> Organization: Digital Equipment Corporation Newsgroups: comp.sys.vms,comp.os.vms,vmsnet.sysmgt,vmsnet.internals In article <340F11CE.702A2B52@bankofny.com>, Manny DeAssis writes... >Hello everyone, > > My co-worker has a program that writes info to a mailbox at select >intervals. It is at shutdown (or termination) of this program that he >wants the contents of the mailbox to be dumped to a file. Later when >the program is restarted the contents of the file should be written to >the mailbox created/used by the program. Hmm, sound to me your co-worker shoudl check out writting stuff directly to a file all the time, for example using a circular buffer algoritme on top of a relative file. Or an indexed file with timestamp primary and a flag as alternate key where the cleared flag is set up as a null key. The file IOs can be postpoened by not sharing and/or using deferred write and a bucnh of buffers. Upon shutdown, and every so often, call SYS$FLUSH. > > Does anyone know how to write a DCL command procedure that can dump >the contents of a mailbox to a file and later write the contents back to >a mailbox? $COPY ! Hth, Hein.