basic.%chmod C Function/BASIC Program

basic.%chmod

Command basic.%chmod C Function/BASIC Program
Applicable release versions: AP/Unix
Category BASIC Program (486)
Description changes the mode of the file "string" to the value specified in "mode".

The valid values for "mode" are in the include "mode.h". Combinations of the modes are obtained by adding several elementary mode values together.
Syntax variable=%chmod(string, mode)
Options
Example
include dm,bp,unix.h mode.h
file='/usr/pick'
n=%chmod(file, O$WRONLY)
Purpose
Related basic.cfunc
basic.cfunction