Usenet comp.sys.vms (1990-2004)
 help / color / mirror / Atom feed
* How does one read from and write to a mailbox in DCL?
@ 1997-09-04  4:00 Manny DeAssis
  1997-09-05  4:00 ` Stephen Hoff Hoffman
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Manny DeAssis @ 1997-09-04  4:00 UTC (permalink / raw)



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.

    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?

-------------------------------------------------------------------
Note: Please send any possible solutions or comments to:
Dennis Allen <dallen@bankofny.com>





^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: How does one read from and write to a mailbox in DCL?
  1997-09-04  4:00 How does one read from and write to a mailbox in DCL? Manny DeAssis
  1997-09-05  4:00 ` Stephen Hoff Hoffman
@ 1997-09-05  4:00 ` Robert Koehler
  1997-09-06  4:00 ` Hein RMS van den Heuvel
  2 siblings, 0 replies; 4+ messages in thread
From: Robert Koehler @ 1997-09-05  4:00 UTC (permalink / raw)



Manny DeAssis (mdeassis@bankofny.com) wrote:
: 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.

:     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 mbannn: file.name
and
	$copy file.name mbannn:

In many cases you'll know a logical name for the mailbox instead of the unit 
number:

	$copy mb-log-name: file.name
and
	$copy file.name mb-log-name:

OBTW, $copy mbannn: nl: is a great way to relieve RWMBX.

------------------------------------------------------------------------------
Bob Koehler                     | Computer Sciences Corporation
Hubble Space Telescope Payload  | System Sciences Division
 Flight Software Team           |



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: How does one read from and write to a mailbox in DCL?
  1997-09-04  4:00 How does one read from and write to a mailbox in DCL? Manny DeAssis
@ 1997-09-05  4:00 ` Stephen Hoff Hoffman
  1997-09-05  4:00 ` Robert Koehler
  1997-09-06  4:00 ` Hein RMS van den Heuvel
  2 siblings, 0 replies; 4+ messages in thread
From: Stephen Hoff Hoffman @ 1997-09-05  4:00 UTC (permalink / raw)





  Followups set to: comp.os.vms

In article <340F11CE.702A2B52@bankofny.com>, Manny DeAssis <mdeassis@bankofny.com> writes:
:    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?

  The DCL command COPY, as well as the OPEN, READ, WRITE, and CLOSE
  commands, can be used to read text from mailboxes.

:Note: Please send any possible solutions or comments to:

  Ask here, get an answer here.

  -------------------------- pure personal opinion ---------------------------
   Hoff (Stephen) Hoffman   OpenVMS Engineering   h*ffman@xdelta.enet.dec.c*m
     headers and addresses munged to avoid automated spammers: junk-e-mail




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: How does one read from and write to a mailbox in DCL?
  1997-09-04  4:00 How does one read from and write to a mailbox in DCL? Manny DeAssis
  1997-09-05  4:00 ` Stephen Hoff Hoffman
  1997-09-05  4:00 ` Robert Koehler
@ 1997-09-06  4:00 ` Hein RMS van den Heuvel
  2 siblings, 0 replies; 4+ messages in thread
From: Hein RMS van den Heuvel @ 1997-09-06  4:00 UTC (permalink / raw)




In article <340F11CE.702A2B52@bankofny.com>, Manny DeAssis <mdeassis@bankofny.com> 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.




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1997-09-06  4:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-09-04  4:00 How does one read from and write to a mailbox in DCL? Manny DeAssis
1997-09-05  4:00 ` Stephen Hoff Hoffman
1997-09-05  4:00 ` Robert Koehler
1997-09-06  4:00 ` Hein RMS van den Heuvel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox