SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
error renaming file

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
error renaming file
Author Message
Dominic Klein



Joined: 23 Nov 2001
Posts: 132

Post error renaming file Reply with quote

I have a file that gets created by Oracle.
I have a file-watch job on the scheduler that looks for it and emails it when it arrives, renames it and backs it up.

Problem is that I get the Error renaming file message - I tried to WAIT(600) beforehand but this is not ideal as Oracle may take longer before it releases the file.
Is there a way of telling if a file is not lovked by another application so you know you can safely rename it ?

Fri Jun 28, 2002 7:36 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7948

Post Re: error renaming file Reply with quote

You cannot find out file like lock state other way then try to do something with the file.

If you use version 3.2 or later you can do something like the following

RETRY:
OnErrorGoto DO_WAIT
FileRename ...
OnErrorStop
GoTo AFTER_RENAME

DO_WAIT:
Wait 600
GoTo RETRY

AFTER_RENAME:

: I have a file that gets created by Oracle.
: I have a file-watch job on the scheduler that looks for it and emails it when
: it arrives, renames it and backs it up.

: Problem is that I get the Error renaming file message - I tried to WAIT(600)
: beforehand but this is not ideal as Oracle may take longer before it
: releases the file.
: Is there a way of telling if a file is not lovked by another application so
: you know you can safely rename it ?

Fri Jun 28, 2002 8:06 am View user's profile Send private message
Dominic Klein



Joined: 23 Nov 2001
Posts: 132

Post Re: error renaming file Reply with quote

that seems to work - thanks

Fri Jun 28, 2002 10:10 am View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.