CALL "C$FSDELETE" USING inputFile GIVING returnCode |
inputFile | PIC X(n) | Specifies the name of the indexed file to be deleted. The name is passed to the indexed file handler APIs so it must be suitable for them. For example, if the file handler is c-tree, avoid the "dat" extension. |
0 | Operation successful. |
1 | An error occurred. |
*> define retCode as pic s9(2) call "c$fsdelete" using "cust" giving retCode if retCode not = 0 display message "Operation failed" end-if |