basic.%chown C Function/BASIC Program

basic.%chown

Command basic.%chown C Function/BASIC Program
Applicable release versions: AP/Unix
Category BASIC Program (486)
Description changes the owner ID and group ID of the file "string" to the values specified in "owner" and "group" respectively.
Syntax variable=%chown(string, owner, group)
Options
Example
if %chown( "/tmp/ap.log", 2000, 0) < 0  then
  crt 'Cannot change owner'; stop
end
Purpose
Related basic.cfunc
basic.cfunction