Description of SETVMDBKDownload count: 22 this month, 1871 altogether.
Downloads for SETVMDBK:
From Kris Buelens, IBM Belgium
Original Author: Chuck Meyer, Chuck Meyer Systems, Inc. Changes in V1.2.b by Kris Buelens, Dec 2002
DescriptionUnless the QUERY modifier is used, SETVMDBK alters data in the VMDBK of a specified, logged-on, user. Many of CP's directory options (such as DEVINFO, MAINTCCW, TODENABLE, etc.) require the user to LOGOF and LOGON, before the option takes effect. Now you may turn many of these options ON and OFF dynamically, while the user is logged-on, without even requiring any modification to the user's directory entry. SETVMDBK allows a class-C user to alter a VMDBK (the VM block) of any currently logged-on user. If VSE1 needs MAINTCCW set ON (perhaps so that it can run DSF), just have any Class-C user issue "SETVMDBK VSE1 MAINTCCW", and the job is done. Would you like to set VSE2's LNKNOPAS to OFF? Enter "SETVMDBK VSE2 \LNKNOPAS". You may turn OFF any option, by prefacing it with any commonly-used not-sign ("^", "\", "~"). Some OPTION information (such as SPOOLMAX, V=R, etc.) is either not kept in the VMDBK, or only takes effect at LOGON time; so these options can not be altered by this program. This program also operates as a REXX function-call, but then it operates only on its own VMDBK. When invoked this way, data is returned which can be used to restore the option back to its original value. So an EXEC that has to run DSF on any class-C userid, may use the following to guarantee execution -
sav1 = SETVMDBK('MAINTCCW') /* set my MAINTCCW to ON */
'ICKDSF ..."
Call SETVMDBK sav1 /* restore MAINTCCW as found */
Whether invoked as a COMMAND or as a FUNCTION, these are always true -
SETVMDBK PHRED \LNKE LNKS PRIV=+KVS DEVI
1. Link-Exclusive is set OFF
2. Link-Stable is set ON
3. PrivClass is promoted to KVS
4. Device-Info is set ON
The following command queries some of PHRED's options -
SETVMDBK Query PHRED LNKE LNKS DISTRIB
1. Link-Exclusive
2. Link-Stable
3. Distribution code
PrivClas alterations are done REGARDLESS of the "SET_PRIVCLASS" option
defined in the SYSTEM.CONFIG.
SETVMDBK has no external requirements, just class-C at execution time. Two other (somewhat related, but otherwise independent) programs are also provided (also requiring only class-C privileges to execute).
|