Quantcast
Channel: Sage X3 – Tips, Tricks and Components
Viewing all articles
Browse latest Browse all 1524

Deleting a file from a directory

$
0
0

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: 

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 :

del-1

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


Viewing all articles
Browse latest Browse all 1524

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>