MAKEUSER Statements

A MAKEUSER statement

  • Consists of a reserved word followed by one or more MAKEUSER data items

  • Is terminated by another reserved word (the beginning of another statement), by the end of the card file, or by an optional semicolon (;)

The semicolon is particularly useful when MAKEUSER is run from an interactive terminal, because it causes MAKEUSER to respond to each statement after it is transmitted.

Data units for the MAKEUSER program consist of

  • Segments

  • Definitions

  • Control statements

Each of these units is introduced by a reserved keyword, as described in MAKEUSER Program Units.

Table 50. MAKEUSER Program Units

Units

Keywords

Function

USER segment

USER

MU

Specifies data for a user entry.

Specifies data for the MAKEUSER prototype entry.

REMOTEUSER segment

REMOTEUSER

Specifies data for remote user entries.

PRIVILEGE segment

PRIVILEGES

Specifies privileges to be associated with attribute modification.

KERBEROS segment

KERBEROS

Specifies data for Kerberos entries.

Definitions

DEFINE

DEFAULT

Permits definition of abbreviations.

Provides automatic invocation of defines.

Control statements

CREATE

Establishes a mode to create a new USERDATAFILE.

ACCESS

Enables the production of reports.

COPY

Causes the USERDATAFILE to be copied.

RECALL

Reinstates a previously saved USERDATAFILE.

END

Terminates MAKEUSER input.

BYE

Terminates MAKEUSER input.

QUIT

Terminates MAKEUSER input.


Examples

MAKEUSER Statement Examples shows examples of MAKEUSER statements.

Table 51. MAKEUSER Statement Examples

The statement . . .

Is used to . . .

USER = CARSON + PU;

Modify the usercode CARSON, making it a privileged usercode.

- USER = LAWRENCE;

Remove the usercode LAWRENCE from the USERDATAFILE.

+ MU MINPW = 1 MAXPW = 1 PU SHOWFILES FAMILY DISK = DISKA OTHERWISE DISKB;

Create a model user entry.

You can then use the MU system command to define usercodes based on this model entry.

The usercode

  • Has only one password

  • Can be made privileged

  • Has all public file titles visible

  • Has a family substitution of DISKA OTHERWISE DISKB

COPY NEW OLD RECORD/SYSTEM/USERDATAFILE;

  • Make a new SYSTEM/USERDATAFILE from the existing SYSTEM/USERDATAFILE.

  • Build a new index to the data and discard old, deleted entries.

The OLD RECORD/SYSTEM/USERDATAFILE specification causes the old SYSTEM/USERDATAFILE to be saved under the file name RECORD/SYSTEM/USERDATAFILE.

+ USER = SMITH MINPW = 1 MAXPW = 1 PASSWORD = INVERNESS SHOWFILES FAMILY DISK = PACKA OTHERWISE PACKB CANDEGETMSG IDENTITY = "JOHN SMITH";

Define a new usercode, SMITH, and associates a number of attributes with it.