CALL "CBL_DELETE_FILE" USING fileName GIVING returnCode |
fileName | PIC X(n) | Specifies the name of the file to be deleted. The name can be partially or entirely changed through configuration properties if iscobol.file.env_naming (boolean) is set to true. If the name is a relative path and iscobol.file.prefix is set, then the first FILE-PREFIX path is used to locate the file. The ISF protocol is not supported, it will invalidate the file path, if used. |
0 | Operation successful. |
>0 | Operation failed. See Interpreting the return code as a file status code. |
*> define file-name as pic x(n) 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" end-if |