Re: test- please ignoe

From: David J Dachtera (djesys.nospam_at_comcast.net)
Date: 04/03/05


Date: Sun, 03 Apr 2005 16:15:50 -0500

John Vottero wrote:
>
> "David J Dachtera" <djesys.nospam@comcast.net> wrote in message
> news:424E08F6.CD7791C8@comcast.net...
> > John Vottero wrote:
> >>
> >> "David J Dachtera" <djesys.nospam@comcast.net> wrote in message
> >> news:424CB5E2.BD741B0F@comcast.net...
> >> > [snip]
> >> > Well, that's cool, but here's what I really need:
> >> >
> >> > $ SYNC/ENTRY=(45,62,83,99)
> >> >
> >>
> >> Add /RETAIN=UNTIL=delta-time to the SUBMITS and then just do the SYNCs
> >> sequentially.
> >> If you don't care about the final status of the jobs you're syncing with,
> >> you don't even need the /RETAIN.
> >
> > Non capisco. SYNC has to do with when a job completes execution, not
> > when the entry is deleted from the queue by whatever means.
> >
> > See HELP SYNCHRONIZE.
>
> I know what SYNCHRONIZE does. You add the /RETAIN=UNTIL=deltatime so that
> the job is still in the queue even if it has already completed. Then,
> instead of:
>
> $ SYNC/ENTRY=(45,62,83,99)
>
> You do:
>
> $ SYNC/ENTRY=45
> $ SYNC/ENTRY=62
> $ SYNC/ENTRY=83
> $ SYNC/ENTRY=99
>
> The first SYNC waits until entry 45 completes. When entry 45 completes, the
> second SYNC executes, if entry 62 is already complete, the SYNC completes
> immediately. When you make it through all four of those SYNC commands,
> you know that all 4 entries are done.
>
> Make the deltatime on the /RETAIN longer than the longest expected run time
> of any of the entries.
>
> Note that this works with the new (V5.5) queue manager but not with the old
> queue manager. It's open to debate as to which of the queue manager does
> SYNC correctly.

Hey! That's a slick approach...

If course, in practical application, the "dispatcher" (proc. that
SUBMITs the jobs) will have to collect the entry numbers and pass them
to the "watcher" which can then loop through the entry list, SYNCHing on
each entry in turn until they all complete.

Excellent!

-- 
David J Dachtera
dba DJE Systems
http://www.djesys.com/
Unofficial OpenVMS Hobbyist Support Page:
http://www.djesys.com/vms/support/
Unofficial Affordable OpenVMS Home Page:
http://www.djesys.com/vms/soho/
Unofficial OpenVMS-IA32 Home Page:
http://www.djesys.com/vms/ia32/
Coming soon:
Unofficial OpenVMS Marketing Home Page


Relevant Pages