skip to main content

Library Routines : CBL_DELETE_FILE

CBL_DELETE_FILE
The CBL_DELETE_FILE library routine deletes a file.
FILE-PREFIX settings are ignored by this routine.
Syntax:
 CALL "CBL_DELETE_FILE" USING fileName
Parameters:
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 - Delete temporary sort file
move "c:\tmp\sorts1\sortcust" to file-name
call "cbl_delete_file" using file-name
if return-code not = 0
   display message "File deletion 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