newname = s.prgd(subsys);
if ('mail' != s.prgd('mail')) error("Could not assume MAIL privileges*n");
S.PRGD allows a program to change the name of the subsystem it is working as, and hence assume the privileges of some other subsystem. S.PRGD is frequently used to get rid of permissions, by assuming the privileges of a less privileged subsystem after all privileged operations have been completed.
Since S.PRGD uses DRL T.EXEC, it may only be issued by privileged programs. S.PRGD is not supported under TS8.
Copyright © 1996, Thinkage Ltd.