DELETE-ACCOUNT Proc

The DELETE-ACCOUNT Proc deletes an account and all of its files from the system.

Format

DELETE-ACCOUNT [account-name] [(N)]

Parameter(s)

account-name

Name of the account you want to delete. If you don’t specify the account name in the command line, the system prompts for it.

N

Suppresses end-of-page pauses.

Description

The DELETE-ACCOUNT Proc performs these functions:

  1. Removes the D-pointer to the account from the SYSTEM Dictionary and puts it in the Master Dictionary of the SYSPROG account.

  2. Removes all D-pointers to data files from all dictionaries in the account being deleted and puts them in the account’s Master Dictionary.

  3. Invokes the DELETE-FILE command, which deletes the D-pointer to the account’s Master Dictionary from the SYSPROG account, along with all of the account’s dictionary and data files. The frames used by the deleted files are returned to the available space pool.

  4. Displays a list of the files being deleted on your screen. If you want to suppress end-of-page pauses, use the N option.

  5. NOTE

    All users of the system should be logged off before you run DELETE-ACCOUNT, because it deletes an item in the SYSTEM Dictionary. Under no circumstances should you delete an account that has users logged onto it. Also, do not delete an account that has GFEs; instead, call your system supplier.

Deleting an Account

To delete the account named ORDERS from the system:

  1. From the SYSPROG account, type the following at the TCL prompt:

  2. >DELETE-ACCOUNT

    The system responds:

    >DELETE-ACCOUNT

    YOU MUST BE ON SYSPROG TO RUN THIS.

        ALL USERS SHOULD BE LOGGED OFF.

            SYSTEM FILE GETS ALTERED VIA THIS PROCESS.

    ACCOUNT NAME ?ORDERS

     

    FILES TO BE DELETED IN ACCOUNT :ORDERS 10:14:19  dd mmm yyyy PAGE 1

     

     

     

    FILE

    BASE

    MOD

     

     

     

    M/DICT

    6295

    7

    MARCH

    6302

    7

    MARCH,MARCH

    6309

    57

    APRIL

    6366

    3

    APRIL,APRIL

    6369

    7

    MAY

    6376

    5

    MAY,MAY

    6381

    11

    JUNE

    6392

    7

    JUNE,JUNE

    6399

    57

    JULY

    6456

    7

    JULY,JULY

    6463

    57

     

     

     

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

  3. When you type Y at the prompt, the account is deleted.