VDE
VDE
Reference Manual


Previous Contents Index


MODIFY CONTEXT

Modifies the attributes of one or more contexts in the VDE database. The attributes of a context that you can modify include its name, remark, default development stream, and default facility. One context can be used to set the default stream and facility when first connecting to a VDE database.

Requires the CRECTX privilege to modify public contexts.


Format

MODIFY CONTEXT ctx-name [, ctx-name...]


Parameter

ctx-name

The name of an existing context whose attributes are to be modified. You can modify more than one context at a time by using wildcard characters in the context name. The percent sign (%) in a context name matches any single character in the position it occupies and the asterisk (*) matches zero or more characters in the position it occupies. Those contexts whose names match the wildcard pattern are modified.

Description

A "context" specifies defaults for VDE sessions. When you modify a context using the MODFY CONTEXT command, you specify the name of the context, the associated development stream, and the associated facility.

To apply the defaults associated with a context, specify the context name as a parameter to the SET CONTEXT command. To set a particular context as the default context for use when you issue the SET LIBRARY command, use the SET CONTEXT/DEFAULT command to mark a particular context as the default context.

There are two kinds of contexts available:

You do not need special VDE privileges to create or modify a private context, but you must have the VDE CRECTX privilege to create or modify a public context. While a private context can have the same name as a public context, neither two private contexts nor two public contexts can share the same name.

Qualifiers

/ARCHITECTURE

Under Construction...

/CONFIRM

/NOCONFIRM (default)

Controls whether VDE asks you to confirm that you want each context definition modified. The /CONFIRM qualifier causes VDE to print a message for the specified context giving the name of the context and asking whether you want to modify that context. If you answer YES (or Y), the attributes are modified. If you answer NO (or N), the attributes are not modified. The /NOCONFIRM qualifier causes VDE to modify the attributes of the context without asking for confirmation.

/FACILITY=facil-name

/NOFACILITY

The /FACILITY qualifier specifies that the indicated facility becomes the default facility when the context is established with the SET CONTEXT command. The default facility is the facility that is assumed when the facility name is omitted from a module name. The /NOFACILITY qualifier specifies that the default facility established by the context is null.

/LOG (default)

/NOLOG

Controls whether log messages are printed after the context definitions are modified. The /LOG qualifier causes such messages to be printed and /NOLOG suppresses them. The messages indicate that the context definitions have been modified and that the database transaction has successfully committed.

/NAME=ctx-name

Specifies a new name for the context. The new context name can be up to 39 characters long and must follow VDE name syntax. After the context name is changed, you must refer to the context by its new name in all subsequent VDE commands. The old name is lost from the database.

/PRIVATE (default)

/PUBLIC

Specifies whether the context that is modified is private or public. The /PRIVATE qualifier causes VDE to modify your private context by that name. The /PUBLIC qualifier causes VDE to modify the public context by that name. You must have the CRECTX privilege to use the /PUBLIC qualifier.

Of /PRIVATE and /PUBLIC, /PRIVATE is the default.

/REMARK="string"

Specifies a remark string for the context. This string replaces the remark string from the original CREATE CONTEXT command or from any previous MODIFY CONTEXT command. The quoted remark string, which can be up to 132 characters long, may contain any explanatory remark about the context that you want stored in the VDE database. Typically the remark describes the function or purpose of the context.

/STREAM=stream-name

/NOSTREAM

The /STREAM qualifier specifies that the indicated development stream becomes the default stream when the context is established with the SET CONTEXT command. The /NOSTREAM qualifier specifies that the default stream established by the context is null.

Examples

#1

VDE„ MODIFY CONTEXT DEFAULT/STREAM=V2.2-BL1/FACILITY=COPY
%VDE-I-CTXMOD, information for context DEFAULT modified in the database
%VDE-I-COMMIT, database transaction has successfully committed
VDE„ DEFINE/KEY KP6 "SET CONTEXT DEFAULTS" /TERMINATE
VDE„ [KP6]
VDE„ SHOW DEFAULTS
Library LIBNAME in root directory DEV$:[PROJDIR]
Default directory is DEV$:[SMITH]
Context DEFAULT (private to user SMITH)
   Default stream is V2.2-BL1
   Default facility is COPY
 
VDE„
      

The MODIFY CONTEXT command specifies stream V2.2-BL1 as the default stream and facility COPY as the default facility for private context DEFAULT. This context is the default at the start of each VDE session. The SET CONTEXT command establishes these defaults for the current VDE session, as the SHOW DEFAULTS command confirms.

#2

VDE„ MODIFY CONTEXT/PUBLIC/FACILITY=EXEC PUBCTX
%VDE-I-CTXMOD, information for context PUBCTX modified in the database
%VDE-I-COMMIT, database transaction has successfully committed
VDE„ SHOW CONTEXT PUBCTX
Context PUBCTX (public to all users)
   Default stream is V2.0
   Default facility is EXEC
 
VDE„
      

The MODIFY CONTEXT command establishes facility EXEC as the default facility for public context PUBCTX. The SHOW CONTEXT command shows that the change has taken effect.


MODIFY FACILITY

Modifies the attributes of one or more facilities in the VDE database. The attributes of a facility you can modify are its name and remark string.

Requires CREFAC privilege.


Format

MODIFY FACILITY facil-name [, facil-name...]


Parameter

facil-name

The name of a facility in the current VDE library whose attributes are to be modified. You can modify more than one facility at a time by using wildcard characters in the facility name. The percent sign (%) in a facility name matches any single character in the position it occupies and the asterisk (*) matches zero or more characters in the position it occupies. VDE modifies the attributes of those facilities whose names match the wildcard pattern.

Qualifiers

/CONFIRM

/NOCONFIRM (default)

Controls whether VDE asks you to confirm that you want each facility modified. The /CONFIRM qualifier causes VDE to print a message for the specified facility giving the name of the facility and ask whether you want to modify that facility. If you answer YES (or Y), the attributes are modified. If you answer NO (or N), the attributes are not modified. The /NOCONFIRM qualifier causes VDE to modify the attributes of the facility without asking for confirmation.

/DELETE

/NODELETE (default)

Sets or clears the delete attribute for the facility. This attribute allows the facility to be deleted with the DELETE FACILITY command. The /DELETE qualifier sets the delete attribute so that the facility can be deleted. The /NODELETE qualifier clears the delete attribute so that the facility cannot be deleted without first resetting the attribute.

/LOG (default)

/NOLOG

Controls whether log messages are printed after the facility definitions are modified. The /LOG qualifier causes such messages to be printed and /NOLOG suppresses them. The messages indicate that the facility definitions have been modified and that the database transaction has successfully committed.

/NAME=facil-name

Specifies a new name for the facility. The new facility name can be up to 39 characters long and must follow normal VDE name syntax. After the facility name has been changed, you must refer to the facility by its new name in all subsequent VDE commands. The old name is lost from the database.

/PROPAGATE

/NOPROPAGATE

Specifies whether automatic change propagation is allowed by default for new modules created in this facility. /PROPAGATE causes new modules added to the facility to be marked as allowing automatic change propagation when reserved and replaced. /NOPROPAGATE marks such modules as not allowing change propagation. When you create new modules, you can override these defaults with qualifiers to the CREATE MODULE command.

/REMARK="string"

Specifies a remark string for the facility. This string replaces the remark string from the original CREATE FACILITY command or from any previous MODIFY FACILITY command. The quoted remark string, which can be up to 132 characters long, may contain any explanatory remark about the facility that you want stored in the VDE database. Typically the remark describes the function or contents of the facility.

Examples

#1

VDE„ MODIFY FACILITY ACCTNG /REMARK="New remark string"
%VDE-I-FACMOD, information for facility ACCTNG modified in the database
%VDE-I-COMMIT, database transaction has successfully committed
      

In this example, the user specifies a new remark string for facility ACCTNG. This remark string can be retrieved with a subsequent SHOW FACILITY command.

#2

VDE„ MODIFY FACILITY/NAME=ACCOUNTING ACCTNG
%VDE-I-FACMOD, information for facility ACCOUNTING modified in the database
%VDE-I-COMMIT, database transaction has successfully committed
      

In this example, the name of facility ACCTNG is changed to ACCOUNTING. You must refer to the facility by this new name in all subsequent VDE commands.

#3

VDE„ MODIFY FACILITY/CONFIRM ACCTNG/REMARK="New remark string", -
_VDE„                             FUMBLE/REMARK="New remark string"
Modify facility ACCTNG ? [No]: Y
%VDE-I-FACMOD, facility ACCTNG modified in the database
Modify facility FUMBLE ? [No]: N
%VDE-I-COMMIT, database transaction has successfully committed
VDE„
      

This example illustrates the /CONFIRM qualifier. This qualifier causes VDE to ask the user whether each specified facility should be modified. For facility ACCTNG, the user answers Y (for YES) and the remark string for that facility is modified in the database, as the log message shows. For facility FUMBLE, the user answers N (for NO) and that facility is not modified. Hence there is no log message for that facility. The final log message indicates that the database transaction for the whole command has successfully committed.


MODIFY FOLD

Modifies the remark string of one or more fold records in the VDE database.

Requires RESREP privilege.


Format

MODIFY FOLD mod-name [, mod-name...]


Parameter

mod-name

Specifies a module for which a fold record is to be modified. The module name consists of an optional facility name enclosed in square brackets, a module name, and an optional type name preceded by a period (such as [FACIL]MOD1.MAR). If the facility name is omitted, the module is assumed to belong to the default facility. If the type name is omitted, VDE modifies fold records for all source modules with the specified module name in the given facility.

You can modify fold records for more than one module by using wildcard characters in any of the three components of the module name. The percent sign (%) in a name matches any single character in the position it occupies and the asterisk (*) matches zero or more characters in the position it occupies. VDE modifies fold records for all source modules whose names match the wildcard pattern.


Description

The MODIFY FOLD command modifies the remark string of each specified fold record in the VDE database.

Qualifiers

/CONFIRM

/NOCONFIRM (default)

Controls whether VDE asks you to confirm that you want each fold record modified. The /CONFIRM qualifier causes VDE to print a message for each fold record asking whether you want that record modified. If you answer YES (or Y), that fold record is modified in the database. If you answer NO (or N), the fold record is not modified. If you enter a module name with a wildcard specification, VDE asks you to confirm the modification of fold records for each module whose name matches the wildcard specification. The /NOCONFIRM qualifier causes VDE to modify the specified fold records without asking for confirmation.

/IDENTIFICATION=fold-ident

Specifies the fold record to be modified. This qualifier is required when you have multiple fold records for the same module in the same stream. The fold-ident parameter is the fold identifier of the fold record to be modified. The fold identifier is the identifier you specified or VDE assigned when you created the fold record, usually a small integer value. Use the SHOW FOLD command to determine the fold identifier of each fold record.

/LOG (default)

/NOLOG

Controls whether log messages are printed after each fold record has been modified. The /LOG qualifier causes such messages to be printed and the /NOLOG qualifier suppresses them. These messages indicate that the fold record has been modified and that the database transaction has successfully committed.

/REMARK="string"

Specifies a new remark string for the fold record. This string replaces the remark string from the original REPLACE or CREATE FOLD command or from any previous MODIFY FOLD command. The quoted remark string, which can be up to 132 characters long, may contain any explanatory remark about the fold record that you want stored in the VDE database. Typically the remark describes the purpose or contents of a source change to be folded into a development stream.

/STREAM=stream-name

Specifies the development stream for which fold records should be modified. The stream-name parameter gives the name of the stream. If this qualifier is omitted, VDE modifies fold records for the default development stream only.

/USERNAME=username

Specifies that fold records are to be modified on behalf of another user. The username parameter specifies the OpenVMS username of the other user. You must have the USERNAME privilege to use this qualifier.

Examples

#1

VDE„ MODIFY FOLD [CODE]X.FOR/IDENT=1/REMARK="New remark string"
%VDE-I-FOLDMOD, fold record 1 for module [CODE]X.FOR modified in database
%VDE-I-COMMIT, database transaction has successfully committed
VDE„
      

This example specifies a new remark string for fold record 1 for module [CODE]X.FOR. The log messages show that the fold record was successfully modified.


MODIFY GENERATION

Modifies the attributes associated with specific module generations in the VDE database.

Requires RESREP privilege.


Format

MODIFY GENERATION gen-spec [, gen-spec...]


Parameter

gen-spec

Specifies a module generation in a specified (or the default) development stream whose attributes are to be modified. A generation specification consists of the following in order: An example of a generation specification is [RMS]MOD1.MAR;5.

If you omit the facility name, module generations from the default facility are modified. If you omit the type name, generations for all modules with the specified module name in the specified facility are modified. If you omit the generation number, the most recent generation of the module in the specified stream is modified.

If you specify a zero or negative generation number, that number is relative to the most recent generation of the module in the stream specified with the /STREAM qualifier (or the default stream if that qualifier is omitted). For example, if the most recent generation is generation 5, then generation 0 is the same as generation 5 and generation --1 is the same as generation 4.

If you specify the /GENERATION qualifier, VDE modifies the generation with the given CMS generation expression and ignores the generation number on the gen-spec parameter.

You can modify more than one generation by using wildcard characters in the facility name, module name, or type name. The percent sign (%) in a name matches any single character in the position it occupies and the asterisk (*) matches zero or more characters in the position it occupies. An asterisk (*) in place of the generation number matches all generations of a module. Those module generations whose names match the wildcard pattern are modified.


Description

The MODIFY GENERATION command allows you to modify the attributes associated with a specific module generation in the VDE library.

Attributes that can be altered via the MODIFY GENERATION command include:


Qualifiers

/CONFIRM

/NOCONFIRM (default)

Controls whether VDE asks you to confirm that you want the attributes of each generation modified. The /CONFIRM qualifier causes VDE to print a message for each generation giving the name of the generation and asking whether you want to modify the generation. If you answer YES (or Y), the generation's attributes are modified. If you answer NO (or N), the attributes are not modified. The /NOCONFIRM qualifier causes VDE to modify the attributes of each generation without asking for confirmation.

/GENERATION=gen-expr

Specifies that the generation with the CMS generation expression given by the gen-expr parameter be modified. When this qualifier is specified, the generation number specified on the gen-spec parameter is ignored.

/LOG (default)

/NOLOG

Controls whether log messages are printed after the attributes of generations are modified. The /LOG qualifier causes such messages to be printed and /NOLOG suppresses them. The messages indicate that the generations have been modified and that the database transaction has successfully committed.

/MAIN_STREAM=stream-name

Specifies the stream that "owns" the main development thread for the specified generation. If the generation is later reserved and its successor is replaced into the stream given by the stream-name parameter (directly or through change propagation), the successor generation will get a "whole-number" CMS generation expression. If the current generation has generation expression 10, for example, the generation created by replacing into the specified stream gets generation expression 11. A replacement into any other stream gets a generation expression such as 10A1 or 10B1. Similarly, if the current generation has generation expression 5A2, the specified stream gets the "whole-number" successor 5A3 instead of a generation expression such as 5A2A1.

VDE automatically maintains information about what stream owns the whole-number successor for each generation in the library. This information is determined by your use of the /MAIN qualifier to the CREATE STREAM command. For this reason, you will seldom need the /MAIN_STREAM qualifier to the MODIFY GENERATION command. However, there are exceptional cases where you may need to change what stream owns the whole-number successor for a given generation, and then this qualifier lets you set that attribute.

/NOTE=note-number

The note-number parameter specifies the note number for the (previously-entered) SCT note associated with this replacement.

VDE can also enter the note into the conference directly, see the /SCT qualifier for information.

/OBSOLETE

/NOOBSOLETE

Specifies whether the module is marked as obsolete in the specified development stream. The /OBSOLETE qualifier specifies that the module is obsolete in that stream. An obsolete module is not propagated to future streams created from that stream. The /NOOBSOLETE qualifier specifies that the module is not obsolete. If neither qualifier is specified, the current status of the module is not changed.

/REMARK="string"

Specifies a new remark string to be stored for the generation. This string replaces the generation's current remark string. The quoted remark string, which can be up to 132 characters long, may contain any explanatory remark about the generation that you want stored in the VDE database.

The remark string is used as the title of the SCT note, if VDE was asked to enter the SCT note by the specification of the /SCT qualifier.

/SCT=filename

The filename parameter specifies the name of a file to be loaded into the SCT notes conference. This file contains the previously-edited text of an SCT entry for the SCT note associated with this replacement.

If this qualifier is used, the default notes conference for the stream---SCT-stream-name---is assumed.

If this qualifier is specified, the /REMARK string is used as the title of the SCT note.

For information on the proper creation and protection of an SCT notes conference, see the Guide to Using VDE.

Also see /FOLD and /OTHER.

/STREAM=stream-name

Specifies that generations for the development stream given by the stream-name parameter be modified. This qualifier thus affects the interpretation of generation numbers on the command's gen-spec parameter. If this qualifier is omitted, VDE modifies generations for the default development stream.

Examples

#1

VDE„ MODIFY GENERATION [FACIL]MODNAM.C;5/REMARK="New remark string"
%VDE-I-GENMOD, information for generation [FACIL]MODNAM.C;5 modified in the
 database
%VDE-I-COMMIT, database transaction has successfully committed
VDE„
      

This example changes the remark string associated with generation 5 of module MODNAM.C in facility FACIL. The log messages confirm that the attributes of the module were modified and that the database transaction successfully completed.

#2

VDE„ MODIFY GENERATION MODNAM.MAR /OBSOLETE
%VDE-I-GENMOD, information for generation [RMS]MODNAM.MAR;6 modified in the
 database
%VDE-I-COMMIT, database transaction has successfully committed
VDE„
      

This example illustrates how to mark a module as obsolete in the default stream. The module will be dropped from all future streams descended from the default stream, but will remain accessible in the default stream.


Previous Next Contents Index