skip to main content

Library Routines : CBL_COPY_FILE

CBL_COPY_FILE
The CBL_COPY_FILE library routine copies a file.
FILE-PREFIX settings are ignored by this routine.
Syntax:
 CALL "CBL_COPY_FILE" USING sourceFile
Parameters:
If the name is a relative path and iscobol.file.prefix is set, then FILE-PREFIX paths are used to locate the file.
If the name is a relative path and iscobol.file.prefix is set, then FILE-PREFIX paths are used to locate the file.
Return code:
returnCode can be any numeric data item and provides additional information:
Examples:
Example - Copy a report from main reports folder to users folder
move "c:\app1\reports\repcustomers.lst" to src-file
move "c:\users\adam\reports\repcustomers.lst" to dest-file
call "cbl_copy_file" using src-file dest-file
if return-code not = 0
   display message "Copy failed"

Copyright (c) 2017 Veryant
Contact us
Please share your comments on this manual or on any
Veryant product documentation with the email button at the top left