Trap the writing of a file in a directory in Powerhouse

Bruin, J.M. (Mark) de mark.debruin at tno.nl
Fri Feb 10 04:45:39 CST 2006


 
Hi,

On VMS you can have a detached process running that checks every other 'time' for a file on a certain location.
When encountered, the process can copy the file a another location for processing (trap any error to be sure the file has been tranferred completely. If you don't know the exact errors that can occur, use try-and-error by check $status).
After the copy you can start a second process that will process the file or you can have the process itself process the file. This depends on how long the processing will take so you won't come in to troubles when a new file arrives while processing another.
After starting the processing (locally or remotely) you can have the process wait for a certain amount of time before starting the completely cyclus again.

If you make use of a second process to do the actual processing of the file, you can put them in a queue and have them wait for the current process to complete (or put a job limit of 1 (one) on the queue and have the queue manager take care of that)

This however only works if the file can be processed in the background and does not need any user interaction!

Mark

> -----Original Message-----
> From: powerh-l-bounces+mark.debruin=tno.nl at lists.sowder.com 
> [mailto:powerh-l-bounces+mark.debruin=tno.nl at lists.sowder.com]
>  On Behalf Of Etienne Rompré
> Sent: Thursday, February 09, 2006 16:35
> To: powerh-l at lists.sowder.com
> Subject: Trap the writing of a file in a directory in Powerhouse
> 
> Hi,
> 
> Powerhouse 8.4
> Openvms
> 
> He is the scenario,
> 
> A external system will send a file via FTP with a different 
> name every 15 min or more.  I need to read this file and 
> process it in our application.
> 
> I know I can use a dec library to determine if a file is 
> written in a directory and then run the program but I was 
> wondering if Powerhouse had something like that internally.
> 
> Thanks!
> 
> 
> --
> Etienne Rompré
> 
> Koala Technologies
> Québec Canada
> 
> tel: (418) 806-5526
> fax: (418) 834-9153
> courriel/email: erompre at koala-tech.com
> www:  http://www.koala-tech.com/
> 
> 
> 
> --
> = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
> Mailing list: powerh-l at lists.sowder.com
> Subscribe: "subscribe" in message body to 
> powerh-l-request at lists.sowder.com
> Unsubscribe: "unsubscribe <password>" in message body 
> to powerh-l-request at lists.sowder.com 
> http://lists.sowder.com/mailman/listinfo/powerh-l
> This list is closed, thus to post to the list you must be a 
> subscriber.
> 

This e-mail and its contents are subject to the DISCLAIMER at http://www.tno.nl/disclaimer/email.html



More information about the powerh-l mailing list