Deleting Accounts

To delete an account and all of its files, use the DELETE-ACCOUNT command.

NOTE

Accounts should be deleted only when all users are logged off the system, because the SYSTEM Dictionary is altered whenever an account is deleted. Never delete an account that has users logged on to it. If an account contains any GFEs, do not delete it, but call your system supplier.

When an account is deleted, its Account Definition item is first removed from the SYSTEM Dictionary and placed in the Master Dictionary of the SYSPROG account. Any user-IDs that point to the account are also removed. Next, all D-pointers to data files are removed from all dictionaries in the account being deleted and placed in the account’s Master Dictionary. Finally, the D-pointer to the account’s Master Dictionary is deleted from the SYSPROG account, along with all of the account’s dictionary and data files. All frames used by the deleted files are returned to the available space pool.

To delete a user-ID, use the DELETE command to remove the Q-pointer from the SYSTEM Dictionary.

Using DELETE-ACCOUNT

To delete an account, enter the DELETE-ACCOUNT command and the name of the account:

Format

DELETE-ACCOUNT [account-name]

If you do not enter the name of the account, the system prompts for it. These messages display:

YOU MUST BE ON SYSPROG TO RUN THIS.

  ALL USERS SHOULD BE LOGGED OFF.

    SYSTEM FILE GETS ALTERED VIA THIS PROCESS.

Next, a list of all files in the account are displayed along with the base frame ID and modulo of each, and you are asked to confirm that you want to delete the account:

DO YOU STILL WANT TO DELETE THE ACCOUNT (Y) ?

When you type Y at the prompt, the account and all of its files are deleted.

See Also

Creating and Deleting Accounts

Creating New Accounts

Accounts and User-IDs

Creating User-IDs

Changing Account Definition Items and User-IDs