|
I did this at my previous job. I created a userid on the source and destination machines to act as the "agent" for the items being sent. Then I set up a never-ending batch job on the destination machine that did a RCVMSG on the agent's message queue. Once a message was received, the batch job would extract out the filename, file number, etc so that it could perform the RCVNETF command. Hope this helps. I can try to get a copy of the source code if folks are interested. Richard -----Original Message----- From: owner-midrange-l@midrange.com [mailto:owner-midrange-l@midrange.com]On Behalf Of Lemen, George (Contractor) Sent: Monday, April 03, 2000 1:14 PM To: 'Midrange-L' Subject: Re: Automating SNDNETF and RCVNETF Eurrat -- I really have never attempted to automate RCVNETF. I suspect it would involve using an API to get a list of the items waiting for a particular user ID then picking them off one at a time. This is because it is possible to have multiple files waiting for a user profile. To directly answer your question, to automatically pick up the message indicating the arrival of new mail, I suspect you would need to use RCVMSG on whatever message queue the notification of a new file arriving comes to. If this is the profile you sign on with, you might find there are conflicts between your interactive job and the batch job waiting to automatically respond to messages arriving on the message queue associated with your user profile. Has anyone out there done this? **************************** Original message back ********************************* <snip> If not and I need to use RCVNETF, how did I monitor the message queue for a profile of XFER id. Will I need a never end program or can't I use some auto-answer or trigger to kick off the CLP needed to do the RCVNETF and RSTLIB? Eurrat ************************** +--- | 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 +--- +--- | 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 mailing list archive is Copyright 1997-2025 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.