× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



At 14:20 12/10/98 -0500, you wrote:
>We have a program that uses a delay loop to process RCVNETF.  Is there a
way to:
>
>A)  Associate a data queue with a distribution queue, much like you can do
with output queues?
>
>B)  Call an API, perhaps QRCVNETF that functions much like QRCVDTAQ,
complete with the delay parameter?
>
>C)  Some alternative cool technique?
>
>I would prefer the data queue.  This would make it easier to shutdown the
process by sending a value to the dataqueue indicating such.
>
>
>What object does the command WRKNETF get it's information from?  If it is
a database then >perhaps I can add a trigger to update a data queue.

I had a need to do some of this stuff, and as others have mentioned used a
program to monitor a message queue. The method I used to acoomplish this
was a wrapper program/command on one system that did a save and sent the
SAVF to a specific user profile on the target SYstem. That user profile had
a break handling program running on the target system.

When the message that a savf has arrived is recieved by the break handling
program, it receives it, and then restores it. I use a naming convention of
the library it was recieved from to identify what library it came from and
has to be restored into.

However, there were some other things I thought about when getting this up
and running that may be mroe what you are looking for. For instance:

On the source system, the program that does the sndnetf could also place an
entry on a remote data queue associated with your target system. This would
allow you (in theory) to monitor a data queue on the target system instead
of a message queue (much easier in my opinion).

It would also allow you to send other pertinent data "with" the savf, for
example a change control reference number (that was what I had intended to
use it for).

Another use for this would be to allow you to specify a different restore
library for the save file, or any other number of possibilities I am sure
you could think of.

When you recieve the SAVF another thing worth considering is using the API
that allows you to list the contents of the savf before restoring it to
allow you to create some "fall back" objects, or to see if there are any
objects you might want to perform some preprocessing for, or check for
pre-existing objects in the target restore library.

This would also allow you to do something neat like package an install
program inside the savf file, extract it (conditionally, if it exists) and
run it to install the other stuff contained in the savf.. or have I started
getting to carried away ?

Anyway, just a few thoughts on how to apporach your problem, hope it helps.

Cheers,
Evan Harris




+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.