Using SETUSERCODE and SETGROUPCODE

The usercode of a code file is the usercode located at the start of the TITLE file attribute. This usercode is also stored in the OWNER file attribute. To cause a code file to run under the usercode of the code file, you can assign the SETUSERCODE subattribute of the SECURITYMODE file attribute. The following ALGOL statement makes such an assignment to file F:

F.SETUSERCODE := TRUE;

The group code of a code file is the value specified by the GROUP file attribute. To cause a code file to run under the group code of the code file, you can set the SETGROUPCODE subattribute of the SECURITYMODE file attribute. The following ALGOL statement makes such an assignment to file F:

F.SETGROUPCODE := TRUE;