Do you need to make mass changes to directory entries?
search cancel

Do you need to make mass changes to directory entries?

book

Article ID: 54563

calendar_today

Updated On:

Products

VM:Director for z/VM Mainframe VM Product Manager VM:Manager Suite for Linux on Mainframe VM:Manager Suite for z/VM VM SUITE VM:Secure for z/VM

Issue/Introduction

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.

Environment

Release:
Component: VME