Skip to main content

Hi,

Im having trouble with CBL_COPY_FILE library routine error 3385... The file is not being copied and wStat-byte2 is returning 3385. The file I'm copying though is about  107chars long (including the directories). Could that be the cause?  Anyone?

Checking status code below;

01  wStatcode       pic x(2) comp-x.

01  wStatcode redefines wStatcode.
       05  wStat-byte1       pic x.

       05  wStat-byte2       pic x comp-x.

 

 


#netexpress

Hi,

Im having trouble with CBL_COPY_FILE library routine error 3385... The file is not being copied and wStat-byte2 is returning 3385. The file I'm copying though is about  107chars long (including the directories). Could that be the cause?  Anyone?

Checking status code below;

01  wStatcode       pic x(2) comp-x.

01  wStatcode redefines wStatcode.
       05  wStat-byte1       pic x.

       05  wStat-byte2       pic x comp-x.

 

 


#netexpress

I found the answer...

I enclosed the filename with double quotation, example;

"C:\\mydata\\subfolder\\this is the filename of the file.doc"

instead of just;

C:\\mydata\\subfolder\\this is the filename of the file.doc

Thanks guys.