Sage X3 has a special feature to delete a file from a directory. The Sage X3 has a simple function through which we can easily delete the file present in the specified directory.
New Stuff: How to add a Product to multiple sites simultaneously
SYSTEME: This function can be used to delete the file present in the directory. This function is present in the ORDSYS standard processing file. We can access it using a function.
Syntax:
Call SYSTEME (adxmac(1), ‘ae_rm’+PATH,” ”, STAT) From ORDSYS
Parameter Details:
- PATH: The path where file is located
- STAT: The status of the file.
Points to be noted;
- File path should not contain any blank spaces.
Kindly refer to the below snippet of code for better understanding the COPSRV
Function :
Hope this Helps!
Also Read:
1) Creating a directory Programmatically in X3
2) Moving a file from a directory
3) List the files from the directory
4) Reading and Writing into sequential file
5) Data Integration In X3