Do you need to make mass changes to directory entries?

Document ID : KB000054563
Last Modified Date : 14/02/2018
Show Technical Document Details

Description

Need to change many User ID's account number in their directory entry. How is that done with either VM:Secure or VM:Director?

Solution

A new command, SCAN, was added to release 2.8 of VM:Director and VM:Secure. This command will satisfy the need to gather data from the 1B0 disk

SCAN command

Returns information about records in the source directory. Information is returned to the issuer's console. Each line of output consists of User ID and matching directory record. This information can be captured in a file.

After you have your list of User IDs that you want to change the accounting code, pull the file through an exec that basically has the following code:

    PARSE ARG USERID NEWACCT 
    PUSH 'QUIT' 
    'VMSECURE MAINT MANAGE ' userid 'USER ACCOUNT ' newacct 
    EXIT RC 

In the case of MAINT MANAGE .... ACCOUNT, a QUIT is required before another 'User ID' can be altered. Not all VM:Secure commands require the QUIT. Those are basically linemode commands. This same sort of process could be used to mass change virtual storage size or other directory options.