IBM Support

DELETEFILE function in Transformation Extender, V9.0.0.2

Product Documentation


Abstract

The DELETEFILE function returns the status of a file deletion command as a single number. DELETEFILE returns 0 for successful file deletion or the appropriate error code if file deletion was not successful.

Content

Syntax:


    resourcelib->DELETEFILE (single-text-expression, single-text-expression, single-text-expression)

Meaning:
    DELETEFILE (filename, number_of_retries, pause_between_retries)

Returns:

    A single number.


number_of_retries

The number of times the DELETEFILE function is to check for the deleted file. The maximum is 100 retries.

pause_between_retries

The amount of time, in milliseconds, that the function waits between checking for the deleted file. The maximum is 100,000.

Example:


(resourcelib->DELETEFILE(GETDIRECTORY () + "myfile1.txt","10","1000")

[{"Product":{"code":"SSVSD8","label":"IBM Transformation Extender"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Not Applicable","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"},{"code":"PF035","label":"z\/OS"}],"Version":"9.0.0.2","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Document Information

Modified date:
08 August 2018

UID

swg27049873