The %chmod() function changes the mode of the file str to the value specified in mode.
For Windows: Not Supported
var = %chmod(str, mode)
The valid values for mode are in the include file: mode.h. Combinations of the modes are obtained by adding several elementary mode values together.
include dm,bp,unix.h mode.h filename = "/tmp/myfile" n=%chmod(filename,S$IRUSR+S$IWUSR+S$IRGRP+S$IWGRP)