This statement has the following parameters:
|A nonnumeric literal or an identifier of an alphanumeric data item, the value of which is the filename of the file to be removed. The file does not necessarily contain an XML document.
The XML REMOVE FILE statement deletes the file specified by the FileName parameter. If the specified filename does not contain an extension, then .xml is appended to the name. If the file does not exist, no error is returned.
A status value is returned in the XML-data-group data item, which is defined in the copybook, lixmldef.cpy.
XML REMOVE FILE MY-FILE-NAME. IF NOT XML-OK GO TO Z.