The following code changes the owner and group for the
standard input file. For the callable service, see
fchown (BPX1FCO, BPX4FCO) — Change the owner and group of a file or directory by descriptor. For the data
structure, see
BPXYCONS — Constants used by services.
AMODE 64 callers
use
BPX4FCO (fchown) example.
MVC GROUPID,.. Group ID 15
MVC USERID,.. User ID 15
SPACE ,
CALL BPX1FCO, Change the owner and group of file+
(=A(STDIN_FILENO), Input: File descriptor +
USERID, Input: New user ID for file +
GROUPID, Input: New group ID for file +
RETVAL, Return value: 0 or -1 +
RETCODE, Return code +
RSNCODE), Reason code +
VL,MF=(E,PLIST) ----------------------------------