You could check if the file name already exists on the new drive by using the FILE() procedure and delete it before renaming your cource file.
>I am moving files using RENAME statement as follows:
>
>
k = 'V:\AS400\f1\*.*'
> l = 'I:\STAFF\DIVISION\Fiscal\Ar\Common\Reports\*.*'
> rename (k) to (l)
>
>
>The problem is that it bombs if their is a duplicate file being moved. Is their another way to move files from one directory to another after renaming the duplicate file on source drive?
>
>thanks
>Nick
Wine is sunlight, held together by water - Galileo Galilei
Un jour sans vin est comme un jour sans soleil - Louis Pasteur
Water separates the people of the world; wine unites them - anonymous
Wine is the most civilized thing in the world - Ernest Hemingway
Wine makes daily living easier, less hurried, with fewer tensions and more tolerance - Benjamin Franklin