Pdms Admin: Command Reference Manual
Pdms Admin: Command Reference Manual
Pdms Admin: Command Reference Manual
PDMS1151/man17/doc1
Issue 140403
PLEASE NOTE:
AVEVA Solutions has a policy of continuing product development: therefore, the
information contained in this document may be subject to change without notice.
AVEVA SOLUTIONS MAKES NO WARRANTY OF ANY KIND WITH REGARD TO
THIS DOCUMENT, INCLUDING BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE.
While every effort has been made to verify the accuracy of this document, AVEVA
Solutions shall not be liable for errors contained herein or direct, indirect, special,
incidental or consequential damages in connection with the furnishing, performance or
use of this material.
This manual provides documentation relating to products to which you may not have
access or which may not be licensed to you. For further information on which Products
are licensed to you please refer to your licence conditions.
For details of AVEVA's worldwide sales and support offices, see our website at
http://www.aveva.com
AVEVA Solutions Ltd, High Cross, Madingley Road, Cambridge CB3 0HB, UK
Revision History
This manual describes the PDMS ADMIN commands for Standard (non-global) and
Global projects. It is written for System Administrators who are already experienced
ADMIN users and who wish to write macros or use command input, rather than the
GUI.
The content of this manual is based on the assumption that you are already familiar
with the concepts that a PDMS System Administrator needs to understand. If you are
not familiar with these concepts, you should refer to the relevant user guide, as follows:
• Using PDMS ADMIN for a standard (non-global) project is described in the
VANTAGE PDMS ADMIN User Guide, which tells you how to set up and
administer PDMS projects using the GUI. The User Guide also describes the
concepts that PDMS System Administrators need to understand.
• Using Plant Design Global via the GUI is described in the VANTAGE Plant Design
Global User Guide, which also describes the concepts in Plant Design Global that
PDMS System Administrators need to understand.
Within the manual, commands that are only available in Plant Design Global are
labelled as Global Project Administration Commands. Some of these commands are
only available at the Hub of a Global Project, and this is also shown. Some options in
standard commands are only available in Global Projects and these options are also
indicated by 'Global' in associated text.
This manual also describes how to use DICE, the PDMS Data Integrity Checker, outside
PDMS, as there is no GUI for the stand-alone module. It also describes database
reconfiguration, which is also a command line or macro operation.
1.1 Macros
Most people who read this manual will be writing macros, either to run into PDMS
when required, for example, to create a new project, or as part of customising the
ADMIN interface.
There are some commands in ADMIN which automatically create simple PDMS macros.
These are command files which can be read back into PDMS. In particular, you can use
the REPLICATE command to create a macro which will replicate a project.
For information about writing more complicated macros using the PDMS Programmable
Macro Language, (PML), see the VANTAGE Plant Design Software Customisation
Guide and the VANTAGE Plant Design Software Customisation Reference Manual.
Chapter 2, Stand-Alone DICE, applies to Standard and Global projects and describes
how to run the PDMS Data Integrity Checker, DICE, from outside PDMS. This chapter
is included in the Command Reference manual as there is no interface to stand-alone
DICE, and you will need to enter commands interactively or via a macro.
Chapter 3, Reconfiguration, applies to Standard and Global projects and describes
database reconfiguration.
Chapter 4, The System and Global Databases , applies to Standard and Global projects.
It contains maps of the System Database and Global Database Hierarchies, and a list of
the ADMIN elements and their attributes that can be set explicitly by the user.
Chapter 5, The Transaction Database applies to Global projects only, and describes the
transaction database, the elements in it, and their attributes.
Chapter 6, Command Summary applies to Standard and Global projects. It lists the
ADMIN commands in functional groups.
Chapter 7, Command Details, applies to Standard and Global projects. It occupies the
majority of the manual and describes every ADMIN command. The descriptions appear
in alphabetical order of command names.
The PDMS Data Integrity Checker (DICE) can be run as a stand-alone program outside
PDMS. This may be necessary if the System database has been corrupted, and you
cannot enter PDMS.
Stand-alone DICE is started up using the script named dop, supplied in the PDMSEXE
directory. Give the following command, outside PDMS:
$PDMSEXE/dop
For a summary of the commands that you can use in DICE, see the Data Integrity
Checking commands in 6, Command Summary.
Commands to exit from DICE in stand-alone mode are:
STOP
FINISH
You can send the reports generated by DICE to a named file in your working directory
using the ALPHA command.
PDMS obtains the text of all its user messages from an external file. When DICE is used
from within a PDMS project, this file is automatically available, but this is not the case
in stand-alone mode. Hence the next command you must give in stand-alone mode is the
ERRORFILE command, followed by the name of the error message file. For example:
ERRORFILE /%PDMSEXE%/MESSAGE.DAT
Note: This file will contain error messages referring to the operation of DICE
itself, not any errors DICE has found during the checking process
The default name of the message file can be found from the entry for DICE in the
current version of makmac.mac, the project configuration macro.
Set up the options you require using the following commands (see the appropriate
command pages for details):
ERRORFILE
MODE
MAXERRORS
MAXWARNINGS
STATISTICS
You can send the reports generated by DICE to a named file using the ALPHA
command.
You can check one or more DB files by using the CHECK command. In this mode, you
can only refer to databases by their external filenames rather than by their internal
PDMS DB names. Up to ten files may be specified in a single command.
Note: The EXTERNAL command cannot be used in stand-alone mode (or by REMOTE
CHECK), because only one DB file can be accessed at a time.
PDMS RECONFIGURER is run from within ADMIN, but only by using the command
line.
In order to understand why database reconfiguration may be necessary, and to
appreciate the steps involved, it is helpful to have some knowledge of PDMS database
structures and their management. For a summary of this information, including an
explanation of DDLs (Database Description Languages) and DABACON (the
DAtaBAse CONtrol program), read the chapter The PDMS Database Management
System in the VANTAGE PDMS ADMIN User Guide.
TO DBFILE /des008
Reconfigured data to go to specified file (assumes project directory is
current directory)
TO DB and TO DBFILE specify that the data is to be reconfigured into an existing DB,
identified by its name or that of the file containing it. The destination DB must be of the
same type as the source DB, and will normally be empty, but need be. For an
explanation of what happens when the DB is not empty, see Section 3.11.4, Copying
Parts of Databases.
TO NEW specifies that a new DB is to be created to receive the reconfigured data. This
is the most common option for the general compaction of DBs. It is explained further in
Section 3.10, Copies and Reconfigured Copies of DBs.
Note: The new database will need to be added to the appropriate MDBs.
Note that you must use RCFCOPY ALL if you intend to use the RECONFIGURE
SESSIONS command at the next step, as the SESSIONS option is not valid if you only
carry out partial reconfiguration.
***Reconfiguration Completed
0 Elements were not defined in DDL
0 Elements have been lost
0 Elements are no longer named
0 Attributes were incorrectly defined
0 Elements were not inserted.
See Section 3.14, Reconfiguration Messages, for a complete list of output messages.
When a DB is reconfigured, by default the session information from the source DB is not
preserved. To ensure that session information such as the original session comment,
session number, username and original date stays the same after reconfiguration, you
can use the command:
RECONFIGURE SESSIONS
The option is not valid for SYSTEM, GLOBAL or COMPARATOR DBs, and is not
available for a partial reconfiguration.
The following example illustrates the use of the SESSIONS option:
FROM DB CTBATEST/DESI
TO FILE /A /B
RCFCOPY ALL
RECONFIG SESSIONS
After reconfiguration, data can be read back in from the file using the existing
commands, replacing the original DB data. When reading in data, the DB number and
extract number must be the same as the originating DB number and extract number.
For example:
FROM FILE /A /B
TO DB CTBATEST/DESI
RECONFIG
The SAMEREF option is assumed when reading the data. If errors occur, the data is not
saved. If you want the data saved even if errors occur, use the FORCE option. For
example:
FROM FILE /A /B
TO DB CTBATEST/DESI
RECONFIG FORCE
When a DB is reconfigured without the SAMEREF option, the reference numbers of the
elements in the destination DB will be different from the corresponding reference
numbers in the source DB.
An index of the reference numbers of elements in the new DB against those in the old
DB is automatically created as an essential part of the reconfiguration process. The new
reference corresponding to an old reference can be queried using the command:
Q NEWREF refno
where refno is the new reference number. The old reference number will be returned.
For example:
Q NEWREF #32/202 =42/205
You can control the format and extent of the output produced by RECONFIGURER
during Pass 2 processing. The commands are:
VB very brief output mode
BRIEF brief output mode
FULL full output mode
In VB (Very Brief) mode, a message is output as each element in the copy list is
successfully created. If the copy command was RCFCOPY ALL, then a message is output
for each element successfully copied into the World of the destination DB.
In BRIEF mode, all information output in VB mode is given, plus messages describing
any errors that have occurred due to DDL changes.
In FULL mode, all information output in BRIEF mode is given, plus a log of all
elements successfully created and named. Note that FULL mode is very verbose and its
use is not generally recommended.
The default is BRIEF mode.
An upper limit may be set on the number of errors that are acceptable during Pass 2 of a
reconfiguration using the ERRORS command. For example:
ERRORS 50
There are two ways of copying a DB in PDMS, which create two different types of copy:
copies and reconfigured copies. This section explains the difference.
3.10.1 Copies…………..
A copy of a DB can be made by using the RCFCOPY command. For example the
following command: will create a copy of the existing DB PIPEA/PIPEA in the new DB
ADMIN/TEST.
RCFCOPY PIPEA/PIPEA ADMIN/TEST
The key features of copies are:
• All copies of DBs have the same DB number. This may be seen by using the LIST
FILES command. For example:
MASTER/DES DESI NUMBER 14 FILENAME /%DRA000%/dra013 UPDATE
• A reconfigured copy has a different DB number from that of the source DB.
• In the reconfiguration process, the destination DB becomes a reconfigured
copy of the source DB, but the reverse is not true. The relationship exists in
one direction only.
• The contents of a reconfigured copy are an edited version of those of the
source DB.
• Any given element will have a different reference number in the reconfigured
copy from its reference number in the original DB (unless you use the same
SAMEREF option).
The previous sections in this chapter describe how a single DB can be reconfigured. In a
real PDMS project, with many DBs of different types and with reference attributes
pointing from one DB to several other DBs, reconfiguration is usually a more complex
process.
This section describes how one or more DBs can be reconfigured in such an
environment. It also describes how part of a DB can be reconfigured, rather than the
whole DB.
Note: If the SAMEREF option is used, the reconfiguration is much simpler
DESIGN DB 1
CREF /150-B1
Nozz /E1-N2
DESIGN DB 2
Similarly, references can exist from Design DBs into Catalogue DBs (the SPREF
attribute of a piping component pointing to an SPCOM, for example), but references
cannot exist from a Catalogue DB back into a Design DB.
When a DB is reconfigured without the SAMEREF option, most of the reference numbers
of its elements will change. To maintain the integrity of pointers into the DB from other
DBs, the contents of any DB which might point to elements in the reconfigured DB are
scanned and the reference or reference array attributes are changed to point to the
correct element once more.
For example, assume that the reference number of an SPCOM in a Catalogue DB
changes from =17/3108 in the original DB to =49/2014 in the reconfigured copy. All
piping components whose SPREF attribute was previously set to =17/3108 must have
SPREF reset to =49/2014. Such components might exist in several DBs.
Reference resetting is performed by the RCFUPDATE command described in the next
section.
Thus, giving the RCFUPDATE command twice results in the reference =123/456
being reset to =123/458.
RECONFIGURER knows which types of DB can be pointed to by reference attributes in
other types of DB, and so does not attempt to update DBs which could not possibly point
to the latest reconfigured copy. A report is output which lists which DBs were and which
were not updated.
The table of references is maintained across multiple reconfigurations, as long as you do
not exit from ADMIN.
To copy only part of a DB, one or more root elements must be specified (by name or
reference number) in a RCFCOPY command. For example:
RCFCOPY /SITE-A SITE-7
Elements of any other types will be copied into the destination DB as NULL elements,
that is they will be created as floating elements, not owned by any higher-level element.
This does not mean that they are inaccessible. As long as such an element is named (or
you know its new reference number) it can be incorporated as a member of any suitable
parent element by using the INCLUDE command.
If you are not at a top level element, there must be an existing element in the
destination DB into whose list part you wish to incorporate the element being copied.
This is done using the INTO option of the RCFCOPY command. For example:
RCFCOPY /ZONE5A INTO /SITE-3
would copy the Zone /ZONE5A and make it the last member of the Site /SITE-3.
If the intended owning element does not already exist in the destination DB at the
beginning of Pass 2, the listed root element will not be copied. For example:
RCFCOPY /SITE-3 /ZONE5A INTO /SITE-3
is not allowed.
INTO cannot be used when the destination is FILES rather then a DB. The word AND
and the comma (,) may be used as separators to improve readability, thus:
RCFCOPY /SITE-5, /ZONE5A INTO /SITE-3, /SITE-6 AND /SITE-12
Several RCFCOPY commands can be given in sequence to add elements to the copy list.
For example, the sequence
RCFCOPY /SITE-5
RCFCOPY /ZONE5A INTO /SITE-3
RCFCOPY /SITE-6, /SITE-12
is exactly equivalent to the RCFCOPY command in the previous example.
If an element is quoted in the copy list but does not exist in the source DB, an error
message is output and the element is not copied. Since RCFCOPY commands are
additive, a correcting command may be given on the next line. For example:
RCFCOPY /SITE1 /SITE2 /SITR3 /SITE4
(24,16) /SITR3 not found (error message)
Since SITE1, SITE2 and SITE4 are already in the copy list, all that is needed to add
SITE3 is:
RCFCOPY /SITE3
Note: Partial reconfiguration of PADD DBs is only allowed for picture elements (i.e.
SHEE, BACK, OVER, SYLB, LALB) and above.
FROM DB ANSI/MASCAT
TO FILES /REC1A /REC1B
RCFCOPY ALL
RECONFIGURE Copies the Catalogue DB first
FROM DB CIVIL/STRUC4
TO FILES /REC2A /REC2B
RCFCOPY ALL
RECONFIGURE Copies the Design DB
FROM DB VESSEL/V25CT
TO FILES /REC3A /REC3B
RCFCOPY /SITE-A
RECONFIGURE Copies the Site
and in the destination project:
FROM FILES /REC1A /REC1B
TO DB CATAL/MAIN
RECONFIGURE Creates Catalogue DB
FROM FILES /REC2A /REC2B
TO DB STEEL/MAIN
RECONFIGURE Creates Design DB
FROM FILES /REC3A /REC3B
TO DB EQUIP/MAIN
RECONFIGURE Creates equipment item
RCFUPDATE DB STEEL/MAIN
RCFUPDATE DB EQUIP/MAIN Gives correct cross-references
The XREF and RESETXREFS commands described in this section are intended for use
during the upgrading of a project from one version of PDMS to the next. They operate on
the data during its transfer from the source DB to the destination DB such that the data
can be modified to conform to the requirements of a new DDL.
The commands are used to ensure that all cross-references are correctly set after a
multi-DB reconfiguration. They are particularly useful in the case where two databases
of the same type are referencing each other. They are also useful when copying between
projects, as an alternative to the UPDATE command. When copying between DBs with
the same DB number, it is best to use XREF and RESETXREFS.
These commands are normally handled automatically by the upgrade macros supplied
with a new version of PDMS. They may be used independently of the upgrade macros by
the experienced user, preferably after consultation with AVEVA Solutions Ltd, and it is
for this reason that they are described here.
XREF may be used to generate a list of the reference numbers of all elements which
need updating for each DB. The list is created during the restructuring of the new DBs
in Phase 2 of Pass 2.
This list is then used to monitor a partial updating operation, which ensures that all
references are reset into every element which has been affected by a DB reconfiguration.
The partial update is controlled by the RESETXREFS command, which is related to the
RCFUPDATE DB command. The RESETXREFS function applies only to elements whose
reference numbers appear in the corresponding XREF file.
For example:
RESETXREFS WITH /REFFILE RESOLVE DB MASTER/DESNEW
RESET /REF2 RESOL /NEWDB
Here /REFFILE is the name of the file generated by the XREF command and
MASTER/DESNEW is the corresponding DB to be updated.
In effect the RESETXREFS command opens the specified XREF file and the RESOLVE
command part initiates the appropriate update. The macro files generated by the
UPGRADE command in ADMIN ensure that the RESET filenames are correctly
matched to the corresponding RESOLVE dbnames.
Note: The XREF file only indicates those elements which need to be updated. The
DUMP files are still required in order to match the old and new reference
numbers correctly.
When reconfiguring a whole project, it is impossible to order databases of the same type
so that all references are resolved as the reconfiguration proceeds. The XREF and
RESETXREFS commands are needed to tidy up the references.
Note: The UPGRADE command is used when a project is being upgraded from an
earlier version of PDMS.
The following is an example of a sequence of commands:
TO DB XX/A2
FROM DB XX/A1
XREF /XX1
RCFCOPY ALL
RECONFIG
:
:
TO DB XX/B2
FROM DB XX/B2
RCFCOPY ALL
RECONFIG
RESET WITH /XX1 RESOLVE DB XX/A2
A more general command sequence for a project upgrade is shown in the following input
and output macros:
Input macro
Write ’Upgrading project CJB ’
Write ’From PDMS10 to PDMS11 ’
Copy all
Reconfigure
From db TAMH/THPROP
To files /REC4A /REC4B
Copy all
Reconfigure
From db TAMH/PROP_ATEST
To files /REC5A /REC5B
Copy all
Reconfigure
During the various stages of the reconfiguration process, messages will be output. This
is particularly so during Pass 2, in which the data from the intermediate files is used to
reconstruct the element hierarchy in the destination DB.
In the simplest case these messages will just indicate the start and finish of each phase,
and confirm that all elements and their attributes were correctly placed. In a more
complex case it is probable that a number of error messages will also be output,
indicating potential problems in building up an unambiguous structure in the new DB.
The transfer operation is essentially an extension of the procedure for copying data
between projects, described in Section 3.12. RECONFIGURER makes provision for
translating the coding of the intermediate files to ensure compatibility between the
language requirements of different computers.
An alternative method of transferring data between different computers is to use the
OUTPUT command in Design, Draft, Paragon or Lexicon. For details of other data
transfer methods, see the VANTAGE PDMS DESIGN Reference Manual Part 1
(OUTPUT command).
The files used by the transfer process are not the PDMS DBs themselves but the
(binary) intermediate files created by Pass 1 of a reconfiguration. These are converted
into larger, but easily transportable, character files by the TO FORMATTEDFILES
command. The files can then be transferred to the target machine via a communications
network or magnetic tape and converted back into Pass 1 temporary file format by the
FROM FORMATTEDFILES command. For example:
On source machine:
FROM DB MASTER/DESI
TO FORM /F1 /F2
RCFCOPY ALL
RECONFIG
On destination machine:
FROM FORM /F1 /F2
TO DB MASTER/DESI
RECONFIG
We recommend that you use the SAMEREF option when reconfiguring a Global project.
We also recommend that there are no users in the database at the primary location
when reconfiguring back to the SAMEREF database.
Databases can only be reconfigured at their primary locations.
Note that when a project database is reconfigured, the database sessions will effectively
be lost. Thus the ability for Global to send only session changes is lost as well. When the
next update occurs between locations, the entire database will be sent via the Global
daemon. This can take some time if the database is large.
1. Refresh TEAMA/EXTRACT.
2. Reconfigure TEAMA/MASTER to file /A, /B.
3. Reconfigure TEAMA/EXTRACT to file /C, /D.
4. REVERT TEAMA/EXTRACT to Session 1.
5. MERGE CHANGES on TEAMA/EXTRACT.
6. REVERT TEAMA/MASTER to Session 2.
7. MERGE CHANGES on TEAMA/MASTER.
8. Reconfigure from file /A, /B to TEAMA/MASTER.
9. Refresh TEAMA/EXTRACT (to pick up changes made in Step 8).
10.Reconfigure from file /C, /D to TEAMA/EXTRACT.
MASTER
EXT
EXTBOT
All databases must be reconfigured to files first and then reconfigured from the files to
the databases, in the order; MASTER, EXT, EXTBOT. If this sequence of operations is
not completed, then databases will be corrupted. For example, if EXTBOT is not
reconfigured from file, then EXTBOT will be corrupted as a result of the reconfiguration
of the other two databases. It is therefore suggested that you make backups of databases
before reconfiguring them.
The sequence of commands to reconfigure the above three level extract could therefore
be:
(Note that the REFRESH, REVERT and MERGE CHANGES commands have not been
shown below.)
FROM DB CTBATEST/MASTER
TO FILE /MASTERA /MASTERB
RCFCOPY ALL
RECONFIG SESSIONS
FROM DB CTBATEST/EXT
TO FILE /EXTA /EXTB
RCFCOPY ALL
RECONFIG SESSIONS
FROM DB CTBATEST/EXTBOT
TO FILE /EXTBOTA /EXTBOTB
RCFCOPY ALL
RECONFIG SESSIONS
FROM FILE MASTERA /MASTERB
TO DB CTBATEST/MASTER
RECONFIG
FROM FILE EXTA /EXTB
TO DB CTBATEST/EXT
RECONFIG
FROM FILE EXTBOTA /EXTBOTB
TO DB CTBATEST/EXTBOT
RECONFIG
It is not necessary for the reconfiguration back from file to be done within the same
session of RECONFIGURER. For example, in a global project where MASTER, EXT
and EXTBOT are primary at different locations, then the following sequence could be
followed:
1. At location A (primary location for MASTER):
FROM DB CTBATEST/MASTER
TO FILE /MASTERA /MASTERB
RCFCOPY ALL
RECONFIG SESSIONS
2. At location B (primary location for EXT):
FROM DB CTBATEST/EXT
TO FILE /EXTA /EXTB
RCFCOPY ALL
RECONFIG SESSIONS
3. At location C (primary location for EXTBOT):
FROM DB CTBATEST/EXTBOT
TO FILE /EXTBOTA /EXTBOTB
RCFCOPY ALL
RECONFIG SESSIONS
Steps 1 to 3, reconfiguring from databases to files, can be done in parallel.
This chapter describes the ADMIN elements and their attributes, which are stored in
the System database (and, for a Global project, the Global database).
You can navigate to the elements in the System and Global databases, and query their
members and attributes in the normal way.
Figure 4-1 shows the structure of the System database in a standard (that is, non-
global) project.
A list of the elements and their attributes follows. For the attributes, the default value
(which is some cases, for example, the Owner of the Team World, is the only allowable
value) is shown, and there may also be a short explanation or additional information.
Some elements can exist in more than one place in the database hierarchy, for example,
DB Lists are owned by Teams and DB Sets. In this case the element is only described
once.
Session information is stored separately in the COMMs database; and the MISC
database stores inter-db macros and messages. The communications world element in
the COMMs database contains the project lock. This may be set or cleared using LOCK
and UNLOCK syntax.
/*
WORLD
World
RFWL
Module FTWL TEAM MDB DBSET ROLE SCOPE STAMP ACR ACRST
Font USER Scopes Stamps ACRs ACR
World Teams Users MDBs DB Sets Roles
World Groups
Irno US
Stno LINE
Fnma unset
Fnmb unset
Faangle 17
.-----------<-------------.
/ |
*-----<----. |
/ | |
>--- ECLASS ---*--- noun ---+--- HIERarchy --+
| | |
`------------+----------------+--->
For example:
ECLASS BRANCH HIERARCHY EQUI HIERARCHY STRU
will include Branch and Equi members, but only STRUs themselves.
The Scope World (SCOW)
Attributes
Name /*SC
Lock false
Owner /*
When you use the MAKE GLOBAL command to make a standard project into a global
project, the Standard System database is split into two new database files; the Global
database and the (local) System database.
A modified sysvir.dat virgin database is used to upgrade the System database file
xxxsys, where xxx is the 3-character project code. The communications world element
LCOMW is added. The glbvir.dat database template file is used to create the Global
database file xxxglb.
The existence of the xxxglb database file shows that the project is global.
The following elements are added:
• The communications world element LCOMW
• The Global Locations world element GLOCW, which will own GRPLI elements
which in turn own GRP elements
• The Global Team World element GTMWL
• The Global Stamp World element GSTWLD. If stamps exist in the System
database, they are all copied to the Global Stamp World element and deleted from
the System database.
The attributes of these elements and their members, and the changes to other ADMIN
database elements which occur when a Project is made Global, are described in the
following pages.
The Global database contains information that is common to all Locations running a
Global project. The Global database is readable at all locations but is it can only be
written to at the Hub. Changes to the Global database are propagated to all the other
Locations. This means that the Global database is the same at every Location, except
during the short time changes are being propagated.
Each local System Database contains project information that is specific to the Location.
The local administrator can write to the local system Database. A local System database
is similar to the System database in a non-global Project. The main difference is that
some of the standard ADMIN elements will be redundant. The differences are described
below.
Session information is stored separately in the COMMs database; and the MISC
database stores inter-db macros and messages. The Comms and Misc databases are
local to each Location.
/*
WORLD
World
The communications world element in the COMMs database contains the project lock
and isolation flags. The project lock may be set or cleared using LOCK and UNLOCK;
and the Isolation flag may be set true or false using ISOLATION syntax. Both lock and
isolation may be set or queried remotely by the Hub or an administering location.
Figure 4-2 shows the structure of the local System Database in a Global project.
The Local System database contains the data for local Fonts, Modules, Users, MDBs,
DB Sets, Scopes and ACRs: these elements correspond to those that existed in the
System database of a Standard project. The communications data is held in a new
LCOMW Location Communications world element. The Team World and Role Worlds
still exist in the local System database, but they are empty. The Team data is stored in
the Global Team World element GTMWL in the Global database, and the Role data is
stored in the Global Role World.
The TEAM and USER elements in the Standard System database cross-reference each
other, that is each team element holds a list USLI of users belonging to the team and
each user element holds a list TMLI of teams to which the user belongs. In the Global
database, a Team does not maintain a USLI list of users belonging to it.
Note: This means that a report of all Users at every Location in the Project can only
be obtained by combining reports from each Location.
The TMLI list in the USER element in the Local System database will continue to
provide a list of teams to which a user at a particular location belongs.
In the same way that a TEAM element no longer maintains a list of users in that team,
a DB element in a team does not maintain a list of MDBs to which the DB belongs. The
MDB element, in the Local System database keeps a list of DBs belonging to it.
The detailed changes to the elements and attributes are described below.
STAT Element
This element already exists in the Local System database, but certain attributes have
been relocated to the Global System database. The attributes are the same as in a
Standard Project with the addition of:
Locrf text(120) 120 character text:
current Location Reference
Note: When a location is created, the LOCRF attribute in its local system DB will be
set to the reference of its LOC location element in the global system database.
The LCOMW Element
The Location Communications World element LCOMW is called /*LC. It contains
elements that describe the communications between one Location and all the other
Locations with which it can communicate. The LCOMW element owns a LCOMC
element, LCOML elements and LCTIML elements.
Execa unset 120 character text: name of script to be run after updates
are transferred (optional)
The Timer values are:
Minutes past the hour 0 - 59
Hours 0 - 23
Days 1 - 31
Months 1 - 12
Days of the week 0 (Sunday) - 6
For example:
Timer '0,30 * * * *' specifies every half hour, every day.
Timer '12 10,12,14,16,18 * * 1,5 '
specifies 12 minutes past the hours given,
Monday to Friday.
The attributes TIMES and TIMEE are not implemented at this release.
Files such as Isodraft files, external plot files and Design manager files are not
propagated automatically by the global daemon. However, there is a mechanism in the
daemon to allow such files to be transferred to and from neighbouring locations, during
scheduled updates (or the UPDATE ALL command). The directory to receive transferred
files is defined by the environment variable %IMPORT%. Each location to which files
are to be transferred requires its own transfer directory - %EXP_ABC% for location
ABC. Transfer of other data is described more fully in the Global Management User
Guide.
Offline locations: Note that transfer of such files to or from offline locations must be
done manually.
LCTIML Element
The LCTIML element is present in a Global project only and has the following functions:
• It overrides the default transaction event timings.
• It contains a LEVENL attribute, which sets the time interval for the event loop
for all locations, in seconds.
• It contains attributes that control the frequency of automatic merges on the
transaction database.
• It contains a list of LCTIMD elements, each of which specifies details about the
event timings between the current site and one other site, as described below.
Attributes:
Levenl 5 Time interval for event loop (secs)
Lmerti Frequency of Automerges. 120 character text:
(settings as for Timer above)
Lmersu 3 Time in days after which successful commands should be deleted.
The value –1 means no deletion.
Lmerfa 3 Time in days after which failed commands should be deleted. The
value –1 means no deletion.
Lmerdl false If true, transaction database is merged and purged at specified
times
At times specified by LMERTI, the transaction database will automatically be merged
and commands deleted as specified by the LMERSU and LMERFA attributes. The
LMERDL attribute must be set to true. For example, the automerge data could be set as
follows:
LMerti ’59 23 * * 3,6’
LMersu 10
Lmerfa –1
Lmerdl true
In this example, the daemon would delete all successful commands older than 10 days
and merge the transaction database. Failed commands would not be deleted.
Note: If both LMERSU and LMERFA are set to –1, then the transaction database will
not be merged.
LCTIMD Element
The LCTIMD element contains details about the event timings between the current site
and one other site. There will be one LCTIMD element for each location that
communicates with the current location.
Attributes:
Name /name
Description unset 120 character text
Locrf /name Reference to Location communicating
with current Location
Lendti 604800 Command timeout period, in seconds
(default is 7 days in seconds)
Lmaxtr 100 Maximum number of retries to send command
Ltimei 120 Time interval between retries, in seconds
WORLD
World
DBLOC
GTMWL Element
The Global Team World element GTMWL is named /*GT. Only one /*GT element can
exist in the database. It is the same as the TMWL element, except that:
Variant false
Controlled false
DBLOC Element
Attributes
Name /name
Type DBLOC
Lock false
Owner /name DB element
Locrf /name Name of Primary Location
Prvrf Name of previous
Primary Location (normally unset)
Propg true Propagation flag
Picfd false Picture file propagation flag
DEALDB Ref Array Indicates locations where db is being de-allocated
Condition unset
Acrmessage unset
GLOCWL Element
The Global Location World element GLOCWL specifies information about Locations,
Groups and Communications (Links). It is named /*GL and only one /*GL element can
exist in the database. The GLOCWL element consists of the three list elements GRPLI
for groups, LOCLI for locations and LNKLI for links. It will has the following attributes:
Attributes
Name /*GL
Lock false
Owner /*
Aduuid text Daemon version string
Hubrf /name Hub Location Reference
Prvrf Nulref Previous Hub Reference (normally unset)
NxtHb Nulref Next Hub location (normally unset)
GRPLI Element
The GRPLI element contains a list of Group elements GRP. A Group is a fully connected
local network of Locations which conceptually form a single node in the Plant Design
Globaltree structure of Locations.
Attributes
Name /name
Lock false
Owner /*GL
GRP Element
The characteristics of each group are defined by a GRP element which has the following
attributes:
Attributes
Name /name
Lock false
Owner /name
Description unset
Membership of a group is indicated by the attribute GRPRF in each location element
LOC, as described below. The location elements LOC are themselves listed in the LOCLI
element.
LOCLI Element
The LOCLI element contains a list of all Location elements LOC, including offline
Locations and those which belong to Groups.
Attributes
Name /name
Lock false
Owner /*GL
LOC Element
The characteristics of each Location are defined by a LOC element which has a set of
attributes and a secondary list element DBALL. The DBALL element is a complete list
of all Databases allocated to the Location. It is implemented as a Dabacon secondary list
of DB reference numbers which refer to DB elements under the DBLI list element of
TEAM elements.
Locations which belong to a Group have an attribute GRPRF holding the reference
number of the Group. If this attribute is null then the Location does not belong to a
group. LOC elements also possess a LOCRF attribute which points to the parent of the
Location. This attribute is used to determine paths between Locations in the proposed
tree structure for connecting Locations.
In a future implementation, based on a more general graph structure, the LOCRF
attribute might either be dropped or used for another purpose. A Location is only
recognised as fully initialised when the logical attribute LINIT is true. Other attributes
of a Location are described in the following table.
The LOC element has the following attributes:
Attributes
Name /name
Lock false
Owner /name
Description unset 120 character text
Locid XXX 3-letter identifier
Rhost rhost name host name
Iconn 1 Connection type:
1 = on-line
0 = off-line
Linit false Initialisation flag
Grprf Nulref Group reference set if
Location is added to a Group
Locrf /name Parent Location
PRMRF Primary location of system Database. If unset,
(and PRVRF is unset) the Satellite will be
administered locally
PRVRF Nulref Old primary location (normally unset)
DEALAL false Indicates that ALL DBs are currently being
de-allocated from this location
STAMP Element
Attributes
Name /name
Lock false
Owner /*ST
Desc unset
Func unset
Purp unset
Setdat unset
STLST Element
Attributes
Name /name
Lock false
Owner /name
Stlsf Nulref DB reference
Stsess 0 Session number for DB
%TRMSG
%TRYEAR
%TRMONT
%TRDAY
%TRUSER
%TRLOC
%TRINCO
%TROPER %TROUCO
%TRSUCC %TRFAIL
The Transaction Message World element is called /*MS. There is only one such element
and it contains elements that store the communication between the daemon, PDMS and
other daemons. It owns any number of TRYEAR elements.
Attributes
NAMEText /*MS
TRSETL Logical Controls whether Local claim commands are stored
These are organisational elements to allow the commands stored in the transaction
database to be grouped by the date on which they were received. Each of these elements
only has a single attribute NAME that is of the form:
• Name of %TRYEAR – year number. For example, /2001
• Name of %TRMONT –as for year, then slash and month. For example, /2001/MAY
• Name of %TRDAY – as for TRMONT, followed by slash then date. For example,
/2001/MAY/21
TRYEARs own TRMONTs, TRMONTs own TRDAYs and TRDAYs own TRUSERs.
These are further organisational elements under which commands are stored as issued
by a specific user (TRUSER) and from a particular location (TRLOC). They each only
have NAME attributes.
A given transaction database will have a structure containing the TRDAY element for
any date on which input commands were received. This will own a TRUSER element for
each of the PDMS users that have issued daemon commands on that day. These will
own a single TRLOC element with the name of the local location (e.g. CAM). There is
only one TRLOC because the PDMS user only sends commands to the local daemon.
The TRDAY may also own a TRUSER for the local and remote daemons
(LOCALDAEMON and REMOTEDAEMON). These will own TROUCO commands
received using RPC from other locations. These will own TRLOC elements for each
location from which an input command has been received. LOCALDAEMON will own a
TRLOC for the local location (e.g. CAM) since operations can send commands to the local
site.
The final system TRUSER element is named …/TIMEDUPDATES with a single TRLOC
of the local site. This contains commands issued to process the regular timed updates.
TRDAY TRUSER TRLOC TRINCO
/2002/MAR/25 /2002/MAR/25/LOCALDAEMON ../CAM CLAIM…etc
/2002/MAR/25/REMOTEDAEMON ../OXF CLAIM…etc
../LON CLAIM…etc
../HOU CLAIM…etc
/2002/MAR/25/TIMEDUPDATES ../CAM UPDATE ALL…etc
/2002/MAR/25/SYSTEM ../CAM CLAIM…etc
/2002/MAR/25/FRED ../CAM CLAIM…etc
/2002/MAR/25/ROSE ../CAM CLAIM…etc
…etc …etc …etc
The TRINCO element stores the information about an input command issued to the
daemon from a user, or another location’s daemon. The information includes the state of
processing of the command and is sufficient for the command to be restarted when a
daemon is restarted, and is sufficient to generate the operations and output commands
necessary to execute the command.
Note that local commands added from PDMS, that is those with TRLOCL True, do not
contain successes, failures or messages.
Attributes
NAME text Not automatically generated
TRCNUM int Command number
INCSTA int The state of processing of the TRINCO
COMUID ref This is the reference of the command that sent this
command to the daemon. For commands sent by this
or other daemons it is the ref of the TROUCO
element at the relevant location. For commands
originating from PDMS it will be set to null.
TRMODU int Module number through with the USER has issued
this command, or GLOBALDAEMON module
TRLOCL log True if command stored directly by PDMS
independent of the Daemon
COMSTR text Command string USER entered that generate this
command, else null
ORILOC[3] text Original Location where user issued the command
The TROUCO element the information about an output command to be issued by the
daemon to itself, or to the daemon at another location. The information includes the
state of processing of the command and is sufficient for the command to be resent when
a daemon is restarted.
Output commands are generated by an input command when operations are created.
They may be destined to be executed at this, or another site.
Attributes
NAME text Not automatically generated.
TRCNUM int Command number of command being sent.
OUTSTA int State of processing of the TROUCO.
COMREF ref Ref of the TRINCO of this command stored in the
receiving location transaction database. This is NULL
until an acknowledgement is received.
ORILOC[3] text Original Location where user issued the command.
DESLOC3] text Ultimate target – destination location where command
will be executed. For some commands this is the
destination of subsidiary commands to be sent, not
this command itself.
PRVLOC[3] text Previous Location which passed the command on to
this location (normally the same as the TRLOC
element).
AUXLOC[3] text Auxiliary location. Often used as a location to send
auxiliary commands.
SYSLOC[3] text Location of administrator when being remotely
administered, else NULL.
NXTARL[3]- text Next Target location – this is needed to determine
which port to assign the output command to, and
which location to send the command.
DEPCOU int Number of other TROPERs and TROUCOs on which
this is dependent.
DEPEND[*] ref References of TROPERs and TROUCOs on which it is
dependant.
DEPTYP[*] log Type of dependencies - on success or failure.
PREOP ref Reference of previous operation which generated this
output command as one of its post operations. If no
previous operation this is NULL.
DATECR date Date command created by owning input command.
The TROPER element stores the information about an operation to be executed by the
daemon. The information includes the state of processing of the operation and is
sufficient for the operation to execute when a daemon is restarted.
Operations are generated by an input command when operations and output commands
are created.
Attributes
NAME text Not automatically generated.
TRONUM int Operation number of operation to execute. Note this
is not a command number.
OPSTAT int State of processing of the TROPER:
DEPCOU int Number of other TROPERs and TROUCOs on which
this is dependent.
DEPEND[*] ref References of TROPERs and TROUCOs on which it
is dependant.
DEPTYP[*] log Type of dependencies - on success or failure.
PREOP ref Reference of previous operation which generated this
output command as one of its post operations. In
none then NULL.
DATECR date Date operation created by owning input command.
DATERD date Date operation is ready to execute after dependencies
satisfied.
DATERN date Date operation was started running (executing).
NRETRY int Number of attempts to start operation running
MAXTRY int Maximum number of retries allowed before failure.
WAITIM int Number of seconds delay between attempts at
executing.
ENDTIM date Date when operation will fail if execution remains
stalled.
DATESL date Date operation stalled during execution.
DATECM date Date execution completed.
MSTEXT text Text info set on completion.
TRPASS log True if operation succeeded, false if failed.
POPCOD int Code for post operation creation function to be run. If
none then zero.
The TRMLST, TRSLST, and TRFLST elements are organisational elements (Message
Lists, Success Lists and Failure Lists respectively):
• Messages (TRMESS) are grouped under Message Lists (TRMLST).
• Successes (TRSUCC) are grouped under Success Lists (TRSLST) and TRMLST.
• Failures (TRFAIL) are grouped under Failure Lists (TRFLST) and TRMLST.
Failures and Successes are propagated back to the originating location as messages as
soon as they are generated and before the full result is handed back. These are finally
stored under TRMLST as TRSUCC and TRFAIL elements.
All the list elements have no user attributes.
The TRMESS, TRSUCC, and TRFAIL elements are for Messages, Successes and
Failures respectively.
Operations and Output Commands are able to have any number of messages attached to
them. They will be generated by Local operation during their execution and be stored.
Remote operations will receive messages from their output commands that will:
• generate messages relating to transaction events (sends, acknowledgements etc.)
• receive messages from the execution of commands at other site,
• receive transaction event messages forwarded through other site remote
operations.
Operations and output commands have a TRSUCC attribute stating a success or
(relative) failure. Each point of failure will generate a single TRFAIL element (e.g.
failure to claim an element). Each point of success will generate a single TRSUCC
element (E.g. an element claimed).
The attributes of TRSUCC and TRFAIL elements are equivalent. They include:
• A Reference to an element involved in the operation (e.g. the ref of a claime
element)
• A double integer code relating to a PDMS message or error (0,0 if not known or
relevant)
• A text string which is a representation of the said message or error.
• An integer qualifier to be used for such things as session numbers etc.
The result of a command (TROUCO) is the sum of all TRSUCC and TRFAIL elements
owned by its operations and output commands. All of these are communicated back to
either the user (if it is a local command) or propagated to the originating site (if it is a
foreign command). In the latter case the compounded errors will appear under the
relevant originating TROUCO operation and hence onwards and upwards.
Whether a TROPER itself is classed as a success is determined by its execute method.
Input Commands are successes if all its operations AND output commands are
successes. An output Command is a success if the input command it spawned returns a
success. Results are only passed on to the generating TROUCO when the input
command is totally finished.
Messages are sent immediately they are generated before waiting for operation or
command conclusion. They go the same route as the result, being compounded by a
TROUCO and transmitted to other site TROPER elements. They are only stored under
the final TRINCO generated from a USER command.
Attributes for elements %TRSUCC and %TRFAIL
DATEMS date Date success/failure raised.
MESNUM[2] int[2] Message/error number relating to MSTEXT or 0,0 if
none available. This can be used as an indication of
the severity of a failure.
MSTEXT text Any result text (not passed on).
MSTYPE int Data type indicates significance of MESQUA,
MSREF, MSDTXT.
MESQUA int Data qualifier.
MESREF ref Data refno corresponding to the error.
MSDTXT text Data text of the result/error.
MSLOC text Name of location that generated the success/failure
TRCNUM int Source command type number (if generated by a
TRINCO).
TRONUM int Source operation type number (if generated by a
TROPER).
This chapter lists the ADMIN commands in functional groups. Details of the commands
are given in Chapter 7 in alphabetical order of command name.
6.6 Querying
LIST Lists Project Information
QUERY Queries information about ADMIN elements.
STATUSSESSION Gives information about the current state of the Project.
SYSTAT Gives information about users accessing the project.
6.9 Reconfiguration
BRIEF Brief output to pass 2 reconfiguration.
DUMP Writes a reference number index to the given file.
ERRORS Sets an upper limit on the number of errors that are acceptable
during Pass 2 of a reconfiguration.
FILE Sets the output destination for reconfiguration messages (see
Chapter 3).
The commands are described in this chapter in alphabetical order of command names.
The descriptions are usually under subheadings of Function, Description, Examples,
Command Syntax, and Related Commands. The syntax of commands is shown by syntax
graphs. These are discussed in the first two sections. The third section contains the
command descriptions.
.-----<-------.
/ |
>---*--- option1 ---|
| |
|--- option2 ---|
| |
‘--- option3 ---+--->
means that you can enter any combination of option1 and/or option2
and/or option3, where the options can be commands, other syntax
diagrams, or command arguments.
The simplified format:
.----<------.
/ |
>---*--- name ----+--->
means that you may type in a list of PDMS names, separated by at least one
space.
<loc>
When a Location needs to be specified, it is shown as <loc> in the sysntax graphs. It can
be:
• A three-letter Word. For example: CAM, the LOCID of a LOC element, where the
LOCID is 3 capital letters.
• A text string of three alphanumeric characters, beginning with a letter. For
example: 'CAM’, ‘A99' or ‘abc’, the LOCID of a LOC element.
• A PDMS general identifier <gid> which points to a LOC element. For example:
/LOCATION_AAA
<when>
>--+-- BEFORE --.
| |
`-- AFTER ---+------ <date> --------.
| |
|------ SESS n --------|
| |
‘-- STAMP stampname ---+--->
<date>
>--- time --- day --- month --- year
time is in the format hh:mm where hhx is the hour and mm the minutes. If not given
then the default of 23:59 is taken. There must not be any spaces around the colon.
day will be an integer. If not specified, the current day is taken. The day must be given
if no time was specified.
month can be entered as a word, or as a number separated by a slash. If not given the
current month is assumed. If used, the slash must be surrounded by spaces.
year will default to the current year. It may be entered as two or four figures.
Examples:
12:00 21 January 2002
9:30 11 / 1 / 02
10:30
21 / 1 / 2002
21 January
Function: Changes the access rights of the specified user to PDMS modules.
Examples:
ACCESS ADMINUSER FREE DRAFTUSER GEN
Give user ADMINUSER FREE access, user DRAFTUSER GENERAL
access
Command Syntax:
.-------------<-------------.
/ |
>--- ACcess --*-- userid ---*--- FRee ------|
| |
`--- GEneral ---+--->
Description: The ACR and the ACR Group must already exist, and the ACR
Group must be the current element.
You can then give a list of ACR names to be added to the Group.
Note that ACR Groups cannot contain other ACR Groups.
Examples:
ACRADD /ACR1 /ACR22 /ACR24
Adds the ACRs /ACR1, /ACR22 and /ACR24 to the current ACR Group.
Command Syntax:
.----<-------.
/ |
>-- ACRADD --*--- acrname ---'
|
`--------------------->
Description: The ACR Group must be the current element. You can then give a
list of ACR names to be removed from the Group.
Examples:
ACRREM /ACR1 /ACR22 /ACR24
Removes the ACRs /ACR1, /ACR22 and /ACR24 from the current ACR
Group.
Command Syntax:
.----<-------.
/ |
>-- ACRREM --*--- acrname ---'
|
`--------------------->
Description: The list position must be in the range 1 through 300. If no list
position is specified, the specified DB is added as a deferred
database (equivalent to DEFER).
Examples:
ADD STEELN/STEELN 1
Place DB STEELN/STEELN at the head of the current MDB list
Command Syntax:
.-------------<--------------.
/ |
>-- ADD ---*--- dbname ---+--- integer ---|
| |
‘---------------+--->
ADMINISTER (continued)
ADMINISTER (continued)
Examples:
ADMINISTER NEWSYSTEM /Cambridge
ADMINISTER NEWSYSTEM 'CAM'
Allows the Hub Administrator to create data (Users, MDBs etc) for a
Location in the transfer directory.
ADMINISTER SYSTEM /Cambridge
ADMINISTER SYSTEM 'CAM'
Allows any System Administrator to read the System Database for
Cambridge. Only the Administrator at the Location where the
Cambridge System Database is Primary will have write access to it.
ADMINISTER SYSTEM SAME
Allows a System Administrator who is administering other Locations
to open the last System database opened.
ADMINISTER SYSTEM LOCAL
Allows a System Administrator who is administering other Locations
to open the local System database.
ADMINISTER SYSTEM AT /Cambridge
ADMINISTER SYSTEM LOCAL READONLY
This is equivalent to entering the ADMIN module as ADMIN
READONLY.
Command Syntax:
Description: Each Location has a list of databases that are allocated to it. The
ALLOCATE command adds a database to this list. A named
database or all databases can be specified. The allocation can be
deferred until a given time. The databases must already exist at
the Hub.
The Hub sends its own copy of the database, or that of the
Location’s parent, to the Location. This is not necessarily the most
up-to-date copy. Note that the Database will also be allocated to
all ancestors of the Location, if it is not already allocated to them.
When a DRAFT Database is allocated, the picture files are not
automatically copied with it. They will arrive with the next
update.
By default, the allocated databases will be Secondary, but you can
specify that they will be Primary. If a database already exists at a
location, you can change its Primary/Secondary status using the
CHANGE command.
Several Databases can be allocated in the same operation using
the ALLOCATE command.
In order for an extract database to be used at a satellite, all
owning extracts must also have been allocated there.
Offline Locations
The ALLOCATE PRIMARY option cannot be used. Use
ALLOCATE followed by CHANGE PRIMARY. The date option is
not allowed.
Note that ALLOCATE should be followed by a TRANSFER
command to copy the database to the location. The CHANGE
PRIMARY command should not be issued until this has been
done.
Using macros to Allocate Databases
You will probably use a macro for long lists of databases
allocations, for example, when a project is first set up.
The allocation process may take some time if there is a slow link
between Hub and Satellite and/or if databases sizes are large.
Note that if a de-allocation is in progress, then the allocation will
stall until the de-allocation is complete before commencing.
ALLOCATE (continued)
Make sure that you do not try to allocate a database to the same
location twice. If the allocation appears to have failed, check the
transaction databases at both the Hub and the Satellite before
attempting to repeat the command.
To check that the allocation has been successful, GETWORK and
then navigate to the LOC element. Navigate to its DBALL
(allocation list) member, and query its members. Wait until the
DBALL element at both the Hub and the Satellite lists all the
allocated databases before continuing.
Note: If the transaction database for a location is being allocated,
this command is not recorded in the transaction database. It is
not normally necessary to allocate it or change its primary
location explicitly.
Note: The OVERRIDE PROPG option cannot be used with a
deferred time.
Examples:
ALLOCATE PIPE/PIPE PRIMARY AT CAM
Copies database PIPE/PIPE from the current Location to Location
CAM, making it Primary
ALLOCATE ALL AT LON AT 23:30
Copies all databases which exist at the current Location but do not
exist at Location LON, from the current Location to Location LON, at
2330 hrs. The Primary/Secondary status will not be changed.
ALLOCATE ALL AT OXF OVERRIDE PROPG
Copies all databases, including non-propagating databases, which exist
at the current Location but do not exist at Location OXF, from the
current Location to Location OXF. The Primary/Secondary status will
not be changed. Transaction databases will not actually be copied, but
empty database files will be created at secondary locations. This
command is useful when changing the Hub location, since it ensures
that the DB allocation lists of the old and new Hub locations match.
ALLOCATE (continued)
Command Syntax:
Function: Sends the information output in the Command Input and Output
window to a file.
Examples:
ALPHA LOG /LOG OVERWRITE
Sends all information displayed in the Command Input and Output
window to a file named log.
ALPHA FILE /LOG
Sends reports to a file named log, for example, a DICE report.
ALPHA LOG END
Ends recording.
Command Syntax:
Examples:
BACKTRACK HANGERS/PADD TO SESSION 4
Backtracks the HANGERS/PADD database to Session 4. The team id
(HANGERS) and TO can be omitted.
BACKTRACK HANGERS/PADD TO STAMP /stamp_007
Backtracks the HANGERS/PADD database to the session that has the
stamp stamp_007. The team id (HANGERS) and TO can be omitted.
BACKTRACK /HVAC 10:30 31 / 8 / 96
BACKTRACK /HVAC 10:30 31 AUGUST 1999
Backtracks the HVAC database to10.30 am on the 31 August 1999. If
the time is omitted, 11.59 p.m. is assumed. If the month is not given,
the current month is assumed. If the year is not given, the current year
is assumed. This example assumes that the team name has been
specified using the SET command.
BACKTRACK (continued)
Command Syntax:
Querying: Q SESSION
BRIEF (Reconfiguration)
Function: Gives brief output from pass 2 reconfiguration. This is the default.
***Reconfiguration Completed
0 Elements were not defined in DDL
0 Elements have been lost
0 Elements are no longer named
3 Attributes were incorrectly defined
0 Elements were not inserted.
Command Syntax:
Examples:
CANCELCommand TRINCO1 OF /2002/APR/23/USERA/LON
Command Syntax:
Examples:
CDESC USER TEST/TEST ’This is a test user’
CDESC TEAM TEST ’This is the test team’
CDESC DB TEST/DESI ’The test design database’
CDESC MDB TEST ’This is the test MDB’
Command Syntax:
It also changes the file number and control mode, and brings
foreign DBs up to date.
CHANGE (continued)
Examples:
CHANGE TEST/TESTDESI ACCESS MULTIWRITE
Change access rights to named database to multiwrite.
CHANGE TEST/TESTDESI CLAIM IMPLICIT
Change claim mode for named DB to IMPLICIT. This option can only
be used for a MULTIWRITE database.
CHANGE TEST/TESTDESI ACCESS UPDATE
Change access rights to named DB to single write.
CHANGE TEST/TESTDESI CLAIM OFF
Change claim mode for named DB to OFF. This option can only be used
for a CONTROLLED database.
CHANGE TEST/TESTDESI CONTROL OFF
Change control setting for named DB to OFF. This option can only be
used for a CONTROLLED database.
CHANGE (continued)
The following command can only be used at the Hub of a Global project:
CHANGE TEST/TESTDESI PRIMARY AT CAM
Change the primary location of the named DB to be CAM. The
database will automatically become secondary at the current Primary
location.
CHANGE (continued)
Command Syntax:
Description: Using the CHECK command from within a PDMS project, you can
check:
• The System, Miscellaneous and Comms databases
• One or more named databases
• All the databases in a project
For information about using DICE (the PDMS Data Integrity
Checker) as a stand-alone program, see Chapter 2, Stand-Alone
DICE.
Examples:
CHECK DBS MASTER/DESI MASTER/CATA
Checks the integrity of a single named DB or a series of DBs within the
project. Up to ten DBs may be specified in each command.
CHECK SYSTEMDB
Checks the integrity of the project’s System DB. In a Global Project,
the current administered System DB is checked.
CHECK COMMDB
Checks the integrity of the project’s Comms DB.
CHECK MISCDB
Checks the integrity of the project’s Misc DB.
CHECK GLOBALDB
Checks the integrity of the project’s Global DB.
CHECK (continued)
CHECK PROJECT
Checks the integrity of all DBs in a project, including the System DB,
Comms DB and Misc DB (but not the virgin DBs). The DBs are checked
automatically by DICE in the following order:
• The System DB
• The Comms DB
• The Misc DB
• The user-accessible DBs, which are checked team by team
CHECK FILES /TRA000/TRA003 /TRA000/TRA001
Checks the integrity of one or more DBs by specifying the names of the
files in which the DBs are held. Up to ten files may be specified in each
command. This version of the command is usually used in stand-alone
mode.
(A list of DBs in a project, together with the names of the
corresponding files in which they are stored, can be produced by using
the LIST FILES command.)
Note: If DICE is being used within PDMS and the CHECK FILES
option is used, then no external reference checking can be done
for that file and EXTERNAL NOCHECK will be assumed.
Command Syntax:
.------<----.
/ |
>- CHEck -+- DBs --*-- dbname ---+-----------------------------------.
| |
|- SYStemdb -----------------------------------------------|
| |
|- GLOBaldb -----------------------------------------------|
| |
|- COMMdb -------------------------------------------------|
| |
|- MISCdb -------------------------------------------------|
| |
`- PROject ------------------------------------------------+-->
CHECK (continued)
In stand-alone mode:
.-------<------.
/ |
>--- CHEck --- FIles --*--- filename ---+--->
CHECKOPTION (continued)
OVERALL STATISTICS
==================
Total no. of entries in Name Table = 111
Total no. of elements checked = 782
Total no. of ref attributes found = 726
Total no. of external references = 0
CHECKOPTION (continued)
CHECKOPTION (continued)
Command Syntax:
Description: This command is the only way in which the System Administrator
can change a user’s password without deleting and recreating the
user. Note that users can change their own passwords using the
PASSWORD command in MONITOR.
Examples:
CNAME USER JF RAB/ROB
Change username JF to username RAB, password ROB
CN DB /GBPADD /GBDRAFT
Change DB GBPADD to GBDRAFT if GBDRAFT does not exist.
CN DB /GBPADD /GBDRAFT OVER
Change DB GBPADD to GBDRAFT even if GBDRAFT exists.
CNAME (continued)
Command Syntax:
Description: Any number of copies may be made. Copies of databases have the
same database number as the original. An MDB cannot contain
more than one database with the same database number.
To avoid the risk of database corruption, databases must always
be copied using this command in ADMIN and not by using
operating system utilities or commands.
Note that extract databases and databases which own extracts
cannot be copied. This also applies when copying from foreign
projects.
Examples:
COPY DB ADMIN/CA1A TO ADMIN/CA1C TO AREA 051
Copies DB ADMIN/CA1A to area 051, renaming it ADMIN/CA1C
COPY TEAM TESTTEAM TO SUPPORT
Team SUPPORT will be the same as team TESTTEAM when queried.
COPY TEAM TESTTEAM TO SUPPORT EXCL USERS
Team SUPPORT will be the same as team TESTTEAM when queried,
but the team’s users will not be copied.
CO MDB /ADMIN TO /ADMINCOPY
MDB /ADMINCOPY will contain the same structure as /ADMIN.
CO USER ADMINA TO TESTA/GEN
A new user TESTA, password GEN will be created, belonging to the
same teams, and having the same access rights as, user ADMINA
COPY DB Z/Z FROM PROJ ABC US SYSTEM/XXXXXX TO A/A
DB Z/Z will be copied from project ABC, so that it can be accessed by
user SYSTEM, password XXXXXX, into the current project. It will be
given the name A/A.
COPY DB Z/Z TO A/A TO AREA 99 TO FINO 50
DB Z/Z will be copied to A/A, in area number 99 with filenumber 50.
The environment variable pointing to area 50 will need to be set.
COPY STAMP /stamp_005 TO /stamp_012
The stamp stamp_012 will be a copy of the stamp stamp_005. The list
of databases referenced will be identical.
COPY (continued)
Command Syntax:
>- COpy -+- DB dbname -+- FROM PROject projid USer id pass -.
| |
‘------------------------------------+---> continued
>- COpy -+- TEam teamid TO teamid -+- EXCLuding USERs ----------------------------------.
| | |
| ‘----------------------------------------------------|
| |
|- MDB mdbname TO mdbname -----------------------------------------------------|
| |
|- USer word TO word name -+--- FRee ------------------------------------------|
| | |
| |--- GEneral----------------------------------------|
| | |
| ‘---------------------------------------------------|
| |
|- STAMP stampname1 TO stampname2 ---------------------------------------------|
| |
‘- MODule -+- integer ---. |
| | |
‘- moduleid --+- TO integer moduleid -------------------------------+->
CREATE (continued)
Examples:
CREATE (continued)
CREATE (continued)
Command Syntax:
Databases
CREATE (continued)
Extracts
>- CReate WORKing EXTRact FROM team/db FOR user ----------> cont
CREATE (continued)
Standard projects:
cont >--------+- EXTNO n -.
| |
`-----------+- DESC text -.
| |
`-------------+-->
Global projects:
cont >-+- EXTNO n -.
| |
`-----------+- REFBLOCKS n -.
| |
‘---------------+- AT <loc> -.
| |
`------------+- DESC text -.
| |
`-------------+-->
The REFBLOCKS option is used to allocate a block of reference numbers. See Running
Global Projects with VANTAGE PDMS for more details.
The AT <loc> option allows the Hub or an administering location to create an extract
database whose primary location is at the specified satellite.
CREATE (continued)
Querying:
Examples:
CURRENT MASTER/AREA-D 2
Move DB MASTER/AREA-D to be at position 2 in the current MDB
list
Command Syntax:
.------------<----------.
/ |
>-- CUrrent ---+--- dbname ---*--- integer -- dbname ---’
| |
‘--- integer --+-- integer -------------------->
Description: The DB Set must first be specified using the SET DBSET
command.
You can then give the keyword DB, followed by a list of DB names
to be added to the Set, and the keyword DBSET, followed by a list
of DB Set names to be added to the Set. The names have to be
elements of the type specified by the last keyword, but you can
use both keywords more than once in the same command line.
Examples: The following example assumes that both the Team and the DB
Set have been set using the SET command.
DADD DB /STEELN /STEELS DBSET /ASET DB /PIPEN
Adds the databases /STEELN, /STEELS and /PIPEN, and all the
Databases in the DB Set /ASET, to the current DB Set.
Command Syntax:
.----------------<------------.--<---.
/ | |
/ .----<-------. | |
/ / | | |
>-- DADD --*--- DB -------*--- dbname ---+---' |
| |
| .-------------------<------------. |
| / | |
| / .-------<-------. | |
|/ / | | |
*--- DBSET ----*--- dbsetname ---+---+---+--->
Examples:
DEALLOCATE PIPE/PIPE AT CAM
Removes the database PIPE/PIPE from Location CAM. The database
must not exist at any Locations which are descendants of CAM.
DEALLOCATE HVAC/HVAC AT OXF INCLUDING DESCENDANTS
Removes the database HVAC/HVAC from Location OXF and all
descendants of OXF.
DEALLOCATE ALL AT LON
Removes all databases which exist at Location LON. Note that you
cannot use the INCLUDING DESCENDANTS option with ALL.
DEALLOCATE (continued)
Command Syntax:
Querying: At a location:
>--- Q DBALL
At a Database:
Description: Moves a DB from the current list of an MDB into the deferred list
of an MDB. You can specify the position in the list by giving an
integer.
Examples:
DEFER MASTER/AREA-D
Make DB MASTER/AREA-D non-current.
Command Syntax:
.------<------.
/ |
>-- DEfer ---+--- dbname ---*--- dbname ---’
| |
‘--- integer --+----------------->
Examples:
DELETE USER
DELETE TEAM
DELETE MDB
DELETE DB
Deletes the current element of the appropriate type.
DELETE DB PIPEN/DESI
Deletes Database PIPEN/DESI
DELETE USER HVAC
Deletes User HVAC
DELETE (continued)
DELETE (continued)
Command Syntax:
Description: The DB Set must first be specified using the SET DBSET
command.
You can then give the keyword DB, followed by a list of DB names
to be removed from the Set, and the keyword DBSET, followed by
a list of DB Set names to be removed from the Set. The names
have to be elements of the type specified by the last keyword, but
you can use both keywords more than once in the same command
line.
Note that DB Sets are deleted using the DELETE command.
Examples: The following example assumes that both the Team and the DB
Set have been set using the SET command.
DREM DB /STEELN /STEELS DBSET /ASET DB /PIPEN
Removes the databases /STEELN, /STEELS and /PIPEN, and all the
Databases in the DB Set /ASET, from the current DB Set.
Command Syntax:
.----------------<------------+--<---.
/ | |
/ .----<-------. | |
/ / | | |
>-- DREMove --*--- DB -------*--- dbname ---+---' |
| |
| .-------------------<------------. |
| / | |
| / .-------<-------. | |
|/ / | | |
*--- DBSET ----*--- dbsetname ---+---+---+--->
DUMP (Reconfiguration)
Examples:
DUMP /DUMP1
Write reference number index to named file.
Command Syntax:
Other Examples:
Other options which you can use to set up the list of Databases are as follows:
DUPLIC INCLUDE DB dbname dbname ...
Include the named Databases in the check.
DUPLIC INCLUDE CLEAR
Remove all entries in INCLUDE list
DUPLIC INCLUDE LIST
List all entries in INCLUDE list
DUPLIC EXCLUDE CLEAR
Remove all entries in EXCLUDE list
DUPLIC EXCLUDE LIST
List all entries in EXCLUDE list
DUPLICATENAMES (continued)
Command Syntax:
.----<-----------.
/ |
>--- DUPLICatenames EXclude ---+--- DB ---*--- dbname -------+
| |
|--- LIST --------------------|
| |
`--- CLEAR -------------------+--->
Description: Enters edit mode (which continues as long as only command lines
beginning with EDIT or MODULE are used) within which a project
module entry’s NAME, NUMBER, SECURITY, MODE, data file,
RESUME file and IMACRO and BUFFER options can be edited.
Examples:
EDIT MODU ADMIN IMACRO /START
Enter EDIT mode and edits module ADMIN to add the macro /START
as an initialisation macro.
EDIT MODU 77 SECU FR
Enter EDIT mode and edits module 77 to make it a FREE module
MODU 77 MODE CATA RW
In Edit mode, change module 77 to CATA db with read/write mode.
EDIT MODU DESIGN RES /%PDMSEXE%/DES
Change resume file name for DESIGN module entry
EDIT MODU ADMIN IMACRO DELETE
Edits the ADMIN module definition and deletes the Imacro entry.
EDIT (continued)
Command Syntax:
.----------------------------------------------------------------------------.
/ |
>- EDit -*- MODule -+- number --. |
| | | |
| ‘- modname -+- NUmber number ---------------------------------------|
| | |
| |- NAme name -------------------------------------------|
| | |
| |- Security -+- FRee ------------------------. |
| | | | |
| | `- GENeral ---------------------| |
| | | |
| |- Mode file -+- RW -------------------------| |
| | | | |
| | |- Read -----------------------| |
| | | | |
| | |- None -----------------------| |
| | | | |
| | ‘- DEFault --------------------| |
| | | |
| |- Open -+- SYMBOLFILE --. | |
| | | | | |
| | |- ATTlibfile --| | |
| | | | | |
| | ‘- MESSagefile -+- name -. | |
| | | | | |
| | ‘--------+- DELETE -| |
| | | | |
| | ‘----------| |
| | | |
| |- Resume file ------------------------------| |
| | | |
| |- Buffer -+- integer -----------------------| |
| | | | |
| | ‘- DEFault -----------------------| |
| | | |
| |- Imacro -+- name ---. | |
| | | | | |
| | ‘- DELETE -+----------------------+- newline-’
| |
‘----------------------+--------------------------------------------------------->
Function: Specifies the name of the file containing the error and warning
messages when DICE is used in stand-alone mode.
Description: PDMS obtains the text of all its user messages from an external
file. When DICE is used from within a PDMS project, this file is
available automatically, but this is not the case in stand-alone
mode. Hence the first command you must give in stand-alone
mode is the ERRORFILE command, followed by the name of the
error message file.
The name of the message file can be found from the entry for
DICE in the current version of makemac.mac, the project
configuration macro.
Examples:
ERRORFILE /%PDMSEXE%/MESSAGE.DAT
Command Syntax:
>--- ERRORfile filename --->
ERRORS (Reconfiguration)
Function: Sets an upper limit on the number of errors that are acceptable
during Pass 2 of a reconfiguration.
Command Syntax:
Examples:
EXCHANGE PIPING/AREA-A SERV/AREA-D SERV/AREA-E PIPING/AREA-B
PIPING/AREA-A and PIPING/AREA-B are the current DBs. They
will be replaced by the DBs SERV/AREA-D and SERV/AREA-E
respectively, even though they are listed out of sequence.
Command Syntax:
.--------<----------.
/ |
>-- EXchange ---*--- dbname dbname ---’
|
|-----------------------.
| |
‘--- integer integer ---+--->
Examples:
EXCLUDE DB MASTER/STEELCATA
Remove named DB from current project
Command Syntax:
Function: Removes users who are accessing the Project, and releases
claimed elements in Multiwrite databases.
Examples:
EXPUNGE ’29f’
Expunge user identified by given process number.
EXPUNGE
Expunge all users. (This should be used with care.)
EXPUNGE DB dbname
Releases elements which have been claimed in a multiwrite database.
These elements may be inaccessible after a user has exited abnormally.
This is not allowed if there are current users accessing the DB.
EXPUNGE DB SYSTEM
Releases elements which have been claimed in a SYSTEM database..
These elements may be inaccessible after a user has exited abnormally.
EXPUNGE DB dbname USER usernumber
Expunges given user from given DB. This is allowed even if there are
users accessing the DB. It is the preferred way of freeing unreleased
claims.
EXPUNGE (continued)
Command Syntax:
.-----<--------------------------------.
/ |
>-- EXPUNGE --*-- process_id --------------------------|
| |
|-- DB dbname ----+-- USER usernumber ---|
| | |
| `----------------------'
|
|--- DB SYSTEM ---.
| |
‘-----------------+------------------>
Querying: Q ACTIVE
EXTERNAL (continued)
Examples:
EXTERNAL CHECK
EXTERNAL NOCHECK
EXTERNAL REJECT
An example of the output when EXTERNAL CHECK is specified:
External databases referenced
_____________________________
8 GLB/DESI 41
31 TECHP/TPDESI 4
Command Syntax:
>--- EXTernal ---+--- NOCHeck* ---.
| |
|--- CHECK ------+-- PREFERENCE
| |
‘--- REject -----+--->
Description: This command allows you to release, issue, drop and refresh
extract databases.
FLUSH Writes the changes back to the parent extract. The
Extract claim is maintained. The extract is refreshed
with changes that have been made to its owning
database.
FLUSH RESET
Resets the database after a failed EXTRACT FLUSH
command. If more than one user is issuing the same
database extract, then flush and release commands
can be processed in the wrong order, causing a flush to
fail and preventing subsequent refreshes of the
extract. This command can be used to undo the failed
flush.
FLUSHW (Flush without refresh) Writes the changes back to the
parent extract. The Extract claim is maintained. The
extract is not refreshed.
REFRESH Refreshes any extract in the database hierarchy with
changes that have been made to its parent extract.
FULLREFRESH
Refreshes an extract and all its parent extracts – its
ancestors. A full refresh takes place from the top of the
database hierarchy downwards, ending with a refresh
of the extract itself. Each extract is refreshed with
changes that have been made to its parent extract.
ISSUE Writes the changes back to the parent extract, and
releases the extract claim.
RELEASE Releases the extract claim: this command can only be
used to release changes that have already been
flushed.
DROP Drops changes that have not been flushed or issued.
The user claim must have been unclaimed before this
command can be given.
EXTRACT (continued)
Note that unlike the constructor modules, you can only perform
these operations on a complete database in ADMIN, and so
claiming has no meaning in ADMIN. For general information
about using extracts in projects, see the VANTAGE PDMS
ADMIN User Guide. For information about using extracts in
Global projects, see Running Global Projects with VANTAGE
PDMS.
Examples:
EXTRACT FULLREFRESH DB PIPE/PIPE-X1
Refreshes all parent extracts in the database hierarchy above
PIPE/PIPE-X1, ending by refreshing PIPE/PIPE-X1 itself with changes
to its parent extract.
EXTRACT REFRESH DB PIPE/PIPE-X1
Refreshes database PIPE/PIPE-X1 with changes to its parent extract.
EXTRACT RELEASE DB PIPE/PIPE-X1
Releases all extract claims in database PIPE/PIPE-X1.
EXTRACT ISSUE DB PIPE/PIPE-X1
Issues all changes to database PIPE/PIPE-X1 and releases the extract
claim.
EXTRACT FLUSH DB PIPE/PIPE-X1
Writes the changes to database PIPE/PIPE-X1 back to its parent
extract, but keeps the elements claimed to the extract.
Also, PIPE/PIPE-X1 is refreshed with changes to its owning database.
EXTRACT FLUSHW DB PIPE/PIPE-X1
Writes the changes to database PIPE/PIPE-X1 back to its parent
extract, but keeps the elements claimed to the extract. PIPE/PIPE-X1
is not refreshed.
EXTRACT DROP DB PIPE/PIPE-X1
Drops all changes to database PIPE/PIPE-X1.
EXTRACT (continued)
Command Syntax:
Description: The font directory stores the font families for use in DESIGN and
DRAFT. Font families are defined by the FONTFAMILY
command. The FONTDIRECTORY command can be given in
ADMIN or used in the make macro. In the make.mac macro
supplied the font directory is defined as %PDMSEXE%. If the font
directory is unset, PDMS will search for the fonts in the user’s
current directory.
Examples:
FONTD /%PDMSEXE%
Command Syntax:
Examples:
FONTFAMILY font_no IR ir_no STYLE style_no ANGLE angle
FONTFAMILY font_no FILE /abc BOLD /def ANGLE angle
PROJECT MBCHARSET JAPAN ANGLE angle
FONTFAMILY 1 IR 4 STYLE 1
FONTF 2 UK ITALIC
FONTF 3 UK BLOCK
FONTF 4 GREEK STYLE 1
FONTFAMILY (continued)
Command Syntax:
.-------------------------<------------------------------.
/ |
>-- FONTFamily ---*--- n ---*- IR number --. |
| | |
|- UK ---------| |
| | |
|- US ---------| |
| | |
|- GREEk ------| |
| | |
|- CYRIllic ---| |
| | |
|- LATIn 1 ----| |
| | |
|- LATIn 2 ----+-- STYle n ---------. |
| | | |
| |-- LIne ------------| |
| | | |
| |-- BLock -----------| |
| | | |
| |-- SErif -----------| |
| | | |
| |-- ITalic ----------| |
| | | |
| |-- SCript ----------| |
| | | |
| |-- TYpewriter ------| |
| | | |
| ‘-- UWLIne ----------| |
| | |
‘- FILE filename -- BOLD filename --+- ANGLE n --|
| |
`------------+-->
Notes:
The IR number is the International Registration Number of the
font. See ISO 8859.
The font family number must be in the range 1-4
The style n must be in the range 1-7.
The angle n must be in the range -85 to + 85 degrees. Negative
angles slope the text backwards.
FROM (Reconfiguration)
Examples:
FROM DB MASTER/DESIGN
Source data is in database MASTER/DESIGN in current project
FROM DBFILE /des016
Source data is in specified file (assumes project directory is current
directory)
FROM PROJECT des MASTER/DESIGN
Source data is in specified DB within project des
FROM FORMATTEDFILES /F1 /F2
Source data is in named character-format intermediate files (used
when transferring data between computers).
FROM SYSTEM
This command is used to reconfigure the System database. It is
followed by the command RECONFIGURE. For more information, see
Section 3. In a Global Project, this command is only available at the
primary location of the System DB (the administering location).
FROM GLOBAL
This command is only available in a Global Project, at the Hub. The
command is used to reconfigure the Global database. It is followed by
the command RECONFIGURE. For more information, see Section 3.
Command Syntax:
>--- From ---+--- DBFile filename ----------------------------.
| |
|--- DB dbname ----------------------------------|
| |
|--- PROJect code dbname ------------------------|
| |
|--- SYSTEM -------------------------------------|
| |
|--- GLOBAL -------------------------------------|
| |
|--- FIles --------------------. |
| | |
|--- BINaryfiles --------------| |
| | |
‘--- FORMattedfiles -----------+--- name name ---+-->
FULL (Reconfiguration)
Description: All information output in BRIEF mode is given, plus a log of all
elements successfully created and named. FULL mode is very
verbose and its use is not generally recommended.
Command Syntax:
Description: All the Project files are copied to a transfer directory at the Hub,
ready for transmission to the new satellite. The transfer directory
is specified by the environment variable
project_locid
where project is the 3-character project code and locid is the 3-
character identifier of the new location.
Before the command is given, the environment variable must be
set, the transfer directory must exist and contain the normal
project sub-directories, and the transaction database for the
location must already have been created. The project Hub should
have already been initialised (or its LINIT attribute set True).
All the files in the Project will be copied to the transfer area. They
must then be transferred to the Location before the Location is
initialised.
After a LOC element has been created for a new Location, the
LOCID and LOCREF must be set. The LOCID assigns a unique
three-character code to the new Location. The LOCREF defines
the position of the new Location within the network by specifying
its unique parent Location.
This command sets the LINIT flag for an offline Location. The
LINIT flag must be set by the INITIALISE command for an on-
line Location.
If the ALLOCATE option is specified, all the Databases allocated
to the Location’s Parent will be allocated to the new Location as
well. The NOALLOCATE option means that no databases (other
than its transaction database) will be allocated to the new
Location: no database files will be copied to the transfer area.
Note that a transaction database must have been created for the
location (and for the Hub), and the Hub must have been
initialised.
GENERATE (continued)
Examples:
GENERATE LOCATION LON
Generates a location with identifier LON. By default, all Databases at
the Hub will be allocated to LON.
GENERATE LOCATION /LONDON
Generates a location /LONDON, allocating all databases.
GENERATE LOCATION LON NOALLOCate
Generates a location with identifier LON. No Databases will be
allocated.
Note: If the location identifier contains numeric characters, it
must be enclosed in quotes.
Command Syntax:
Command Syntax:
The Location which will become the new Hub must have all DBs
allocated to it using the ALLOCATE ALL …OVERRIDE PROPG
command before the HUBLOCATION command is given. (The
OVERRIDE PROPG option ensures that non-propagating
databases, including transaction databases are allocated to the
new hub)
You may also wish to give a SYNCHRONISE command at the
Location which will become the Hub to bring the databases up-to-
date. You are advised to backup the Global database at the Hub
before issuing this command.
The relocation can be deferred until a given time (for online
Locations only).
Note: Before you give this command, the new Hub Location
must have a locally administered System database, and
all constructor databases must be allocated to it (see
above). You must wait for the operation to complete: see
the VANTAGE Plant Design Global User Guide for more
information on Hub administration.
If a HUBLOCATION command fails, the previous Hub will
normally be recovered automatically. If the recovery fails (for
example, the daemon is not running), you can recover the
previous Primary location using the command:
PREVOWN HUB
Use of the PREVOWN command should be avoided if possible.
Examples:
HUBLOCATION LON
Relocates the Hub to location with identifier LON.
HUBLOCATION LON AT 20:00
Relocates the Hub to location with identifier LON at 2000 hrs.
Command Syntax:
Description: Included databases are also known as foreign databases. They are
often used for sharing Catalogues.
When creating a new Project that is required to share DBs from
other Projects, there are two important considerations:
• Teams must exist for all DBs that are to be shared.
• DBs in the source project that are to be shared should not be
given a DB number that will clash with a DB number that
already exists in the destination project.
Examples:
INCLUDE DB MASTER/PIPECATA FROM PROJ MAS USER USERA/A
The database MASTER/PIPECATA from project MAS will be included
in the current project. The user/password (USERA/A in this example)
must be a FREE user in the source project.
Command Syntax:
Description: This command checks for the existence of the Admin daemon at
the given location and informs the Hub that the location is on-
line. The command must be given at the Location after the files
generated by the GENERATE LOCATION command have been
transferred to the Location, and the Admin daemon has been
started at the Location.
Locations must be initialised before any Global activities can take
place.
Note that this command is only needed for online Locations: the
LINIT attribute of an offline Location is set to TRUE by the
GENERATE LOCATION command.
When you first use a Global project, it is necessary to initialise the
Hub. The Hub transaction database must be created before
initialising.
Examples:
INITIALISE
Command Syntax:
Querying: Q LINIT
Description: An isolated Location will not accept database updates from other
Locations, or transfer updates to other Locations. Note that User
messages and queries are accepted, and some commands can be
passed through an isolated Location.
A Location may need to be isolated if data corruption is suspected.
Isolation commands are not recorded in the transaction database.
Examples:
ISOLATION TRUE
Isolates the current Location.
ISOLATION FALSE
Connects the current Location.
ISOLATION TRUE AT LON
Isolates the remote Location LON. This command is only available at
the Hub or at the administering location (in this example, that for
LON).
ISOLATION FALSE AT LON
Connects the remote Location LON. This command is only available at
the Hub or at the administering location (in this example, that for
LON).
Command Syntax:
LIST (Querying)
Examples:
LIST
Outputs date and time.
LIST USERS
Lists the Users in a project.
LIST MDBS
Lists the Multiple Databases in a project.
LIST DBS
Lists the Databases in a project.
LIST DBS OF TYPE DESI
Lists all the Databases of type DESI in a project.
LIST TEAMS
Lists the Teams in a project.
LIST COPIES
Lists the DBs in a project which have been copied and the filenames of
the copies.
LIST ALL
Lists the Users, Teams, Databases and MDBs in a project.
LIST FILES
Lists the DBs in a project and their corresponding filenames in the
Project directory.
LIST MESSAGES
Lists inter-user messages.
LIST MODULES
Produces information on all the PDMS modules used by the project.
LIST MODULES 5
Produces information on module 5.
LIST MODULES DESIGN
Produces information on module DESIGN.
LIST MESSAGES
Lists inter-user messages.
LIST PASSWORDS
Lists users’ ids and passwords.
LIST TYPES
Lists the types of DB currently permissible.
LIST (continued)
LIST SIZES
Gives the sizes of all the DBs in a project.
LIST EXTERNAL
Lists DBs which are being shared with another project.
LIST MACROS
Lists inter-db connection macros.
LIST AREA 51
Lists DBs in Project Area 51.
LIST WORKing EXTracts
Lists the working extracts.
LIST WORKing EXTracts FOR user
Lists the working extracts for the specified user.
LIST WORKing EXTracts dbname
Lists the working extracts for the specified DB.
LIST (continued)
Command Syntax:
.----------------------<----------- ----------.
/ |
>--- LIst ---*-----------------------------------------------|
| |
|--- USers -------------------------------------|
| |
|--- MDBs --------------------------------------|
| |
|--- DBs ---+--- OF TYPE type ------------------|
| | |
| ‘-----------------------------------|
| |
|--- TEams -------------------------------------|
| |
|--- FIles -------------------------------------|
| |
|--- COpies ------------------------------------|
| |
| .-------<---------. |
| / | |
|--- MOdules ---*--- integer -------| |
| | | |
| |--- module_name ---’ |
| | |
| ‘-------------------------------|
| |
|--- MESSages ----------------------------------|
| |
|--- ALL ---------------------------------------|
| |
|--- PASSwords ---------------------------------|
| |
|--- TYpes -------------------------------------|
| |
|--- SIZes -------------------------------------|
| |
|--- MACRos ------------------------------------|
| |
|--- AREA --- integer --------------------------|
| |
|--- EXTernal ----------------------------------|
| |
‘--- WORKing EXTracts –-+----------.- FOR user -+--->
| |
‘- dbname –’
LOAD (Reconfiguration)
Function: Loads the reference number index from the given file.
Examples:
LOAD /DUMP1
Read reference number index from named file and replace current
index.
LOAD /DUMP1 APPEND
Read reference number index from named file and
append to current index.
Command Syntax:
>--- LOad ---+--- APPEND ---.
| |
‘--------------+--- filename --->
Function: Locks the Project Database and prevents any other user from
entering the database until the project is unlocked.
Examples:
LOCK
Locks the Project database.
LOCK AT LON
Locks the Project database at the remote Location LON. Only available
at the Hub of a Global Project or at the administering location for the
location (in this example, the administering location for LON).
Command Syntax:
Examples:
MAKE GLOBAL
Command Syntax:
Description: In FULL mode, DICE checks the DB or files specified, listing all
errors and warnings, until a prescribed maximum number of
errors or warnings is exceeded. Checking of that DB is then
abandoned.
The default setting for the maximum error count is 50, but you
can specify a different number by using the MAXERRORS
command.
Examples:
MAXERRORS 100
Related Commands: MODE, MAXWARNINGS
Command Syntax:
Function: Sets the maximum number of users for a project. Note that there
is no theoretical limit to the number of simultaneous users, but a
limit may be set by the current licence restrictions.
Examples:
MAXUSERS 10
Command Syntax:
Description: In FULL mode, DICE checks the DB or files specified, listing all
errors and warnings, until a prescribed maximum number of
errors or warnings is exceeded. Checking of that DB is then
abandoned.
The default is 50.
Example:
MAXWARNINGS 100
Command Syntax:
>--- MAXWarnings integer --->
Examples:
MERGE CHANGES HVAC/PADD AFTER SESSION 4 BEFORE SESSION 10
Merges all the changes to the HVAC/PADD database after session 4
and before session 10, that is all changes made in sessions 5 to 9 will be
combined. If there are any stamped sessions in sessions 5 to 9, they
will be kept. The team id (HVAC) can be omitted if a current team is
set.
MERGE CHANGES HVAC/PADD AFTER STAMP /
stamp_012 BEFORE STAMP /stamp_016
Merges all the changes to the HVAC/PADD database for sessions that
are after the session stamped with stamp_012 and before the session
stamped with stamp_016. All changes made in stamped sessions that
are between the sessions stamped with stamp_012 and stamp_016 will
be combined. If there are any other stamped sessions, they will be kept.
The team id (HVAC) can be omitted if a current team is set.
|
|--- SYSTEM ------------------------------------------->|
where when can be given in the form of a date or a session number, or, if the
required sessions have been stamped, a stamp, as shown in the examples. See
Section 7.2, for the full syntax of <when>.
Note: All the MERGE CHANGES syntax except MERGE CHANGES GLOBAL
can be applied to a remote Location in a Global Project by prefixing the
command by REMOTE <loc>, where <loc> is the Location identifier.
MERGE CHANGES SYSTEM applies to the currently administered system
database.
See the REMOTE command for examples.
Querying: Q SESSION
Examples:
mess team piping ’the latest pipe routing has been approved’
Command Syntax:
Examples:
MODE BRIEF
MODE FULL
Related Commands: MAXERRORS
Command Syntax:
Examples:
Module 78 DESIGN
Security Free
Mode DESI Default
Mode PROP R
Mode CATA R
Mode DESI RW
Resume /%PDMSEXE%/des
Command Syntax:
MODULE (continued)
.--------------------------.
/ |
>--- Open ---*--- ATTLIB filename --------|
| |
|--- SYMBOLFILE filename ----|
| |
‘--- MESSagefile filename ---+--->
Querying:
.----------------.
/ |
>--- Query MOdule ---*--- integer ------|
| |
‘--- module_name --+--->
Example:
MOVE DB HVAC/HVAC TO AREA 051
Command Syntax:
NEW (continued)
Example:
NEW STAMP /Stamp_007
Creates a new stamp named Stamp_007.
NEW STLST STLSF /*PIPEDB STSESS 7
Creates a new Stamp List for each DB in the stamp (here, PIPEDB),
for session number 7. The Stamp List holds a reference to the DB and
the session number. Any number of STLST elements can be created (or
deleted). The default value of STSESS is the current session for the
DB.
Command Syntax:
.--------<---------.
/ |
>-- NEW --+-- STLST --*-- STLSF /*dbname –-'--+-- STSESS dbname ---.
| | |
| ‘ |
| |
‘-- STAMP /stampname ------------------------------------+--->
Example:
PING LON
Checks that communications link to Location LON exists.
Command Syntax:
Function: Restores the Hub to its previous Location, or restores the previous
Primary Location of a database, if the commands to change these
attributes have failed.
PREVOWNER (continued)
Examples:
PREVOWNER HUB
PREVOWNER dbname
PREVOWNER SYSTEM AT <loc>
Command Syntax:
Examples:
PROJ NAME ’STABILIZER’
PROJ DESCRIPTION ’CADC TRAINING PROJECT’
PROJ MBCHAR JAPANESE
PROJ MBCHAR 87 (where 87 is the ISO Standard Font number).
PROJ MBCHAR LATIN FILE /lat_std BOLD /lat_bld
PROJ CHARSET LATIN 2
PROJECT (continued)
Command Syntax:
Querying:
Function: In a Global Project, removes old database files and picture files
after propagation or transfer to an offline Location. Also removes
old picture files from any Project.
Description: When updated database files and picture files are propagate or
transferred, the existing versions will be retained if Users are
accessing them. The files will have the suffix .admold. The main
use of this command is to remove the old versions of these files.
The PURGE DB option removes old versions of picture files from
a given Database in any Project.
Examples:
PURGE OLD FILES
Deletes all files in the Project with the suffix .admold.
PURGE OLD FILES DB
Deletes all database files in the Project with the suffix .admold.
PURGE OLD FILES PICTURE
Deletes all picture files in the Project with the suffix .admold.
Command Syntax:
QUERY (Querying)
Examples:
Q COPIES PIPING/AREA-A
List the copies of DB PIPING/AREA-A
Q SET MDB
Q SET TEAM
Q SET DBSET
Query the set (i.e. current) Team, MDB or DB Set
Q MOD DESIGN DRAFT 33
Query module entries for DESIGN, DRAFT and module 33
Q DDL
Gives version number of System DDL (Design Data Language)
Q CLAIM SAMPLE/DESI
Outputs information about claimed databases
Q NEWREF old-ref
Gives the new reference corresponding to the given old reference
Q SESSION LAST
Outputs the date, user, and any comments saved with the given
session
Q SESSIONS ON date dbname
Q SESSIONS SINCE n dbname
Q SESSIONS LAST n dbname
Query session information on a specified database
Q SESSIONS SINCE n
Q SESSIONS LAST n
Q SESSIONS ON date
Query session information on the current database (i.e. System or
Global database)
Q ACTIVE
Gives the active session number
QUERY (continued)
Q NACCNT
At a DB element, gives the non-additive changes count. This value
increases when a database is merged, backtracked or reconfigured.
This attribute will return the value for the system database if used at
STAT /*S, or in a Global project, for the global database if used at
GSTAT /*GS.
Q ELCCNT
At a DB element, gives the extract list changes count. This value
increases when extracts are inserted or removed.
Q CLCCNT
At a DB element, gives the claim list changes count. This value
increases when elements are claimed or dropped without other changes
to the database.
Note: In a Global project, the above three attributes together with
session information can be used to compare the state of the database at
different locations. For information about this, see Running Global
Projects with VANTAGE PDMS.
Querying extracts
Q DBNAME
Gives the name of the database you are actually writing to.
Q CLAIMLIST
Gives a list of user claims in your current database.
Q CLAIMLIST EXTRACT
Tells you what you can flush.
Q CLAIMLIST OTHERS
Tells you what you can't claim, including user claims and extract
claims.
The following options are only available in a Global Project:
Q ADMLOC
Returns the currently administered location, which may be different
from the true current location.
Q COMMS TO LON
Query state of comms link to location LON. (Equivalent to PING)
Q COMMS LON INPUTPACKETS
Q COMMS LON OUTPUTPACKETS
Query data from comms link to location LON: Input or Output Packets.
QUERY (continued)
QUERY (continued)
Command Syntax:
QUERY (continued)
RCFCOPY (Reconfiguration)
Function: Defines the part of the database to be copied from the source DB
to the destination DB before reconfiguration.
Examples:
RCFCOPY ALL
Copies all of the elements in the list part of WORLD in the source DB
into the list part of WORLD in the destination DB
RCFCOPY CATA
copies the first root elements of type CATA to be copied from the list
part of the WORLD in the source DB.
RCFCOPY SPEC
copies the first root elements of type SPWL to be copied from the list
part of the WORLD in the source DB.
RCFCOPY /SITE5A /SITE7
Copies just the named elements
Command Syntax:
.-------------<---------------------.
/ |
>--- RCFCopy ---*--- ALL --------------. |
| | |
|--- CATalogue --------| |
| | |
|--- SPECifications ---| |
| | |
|--- name -------------| |
| | |
`--- refno ------------+--- AND ------|
| |
|--- comma ---’
|
`--- INto ---+--- name ----.
| |
‘--- refno ---+--->
RCFCOPY (continued)
Querying: Q COPIES
RCFUPDATE (Reconfiguration)
Examples:
RCFUPDATE DB MASTER/DESIGN
Updates references to the reconfigured DB from DB
MASTER/DESIGN.
RCFUPDATE MDB /USERA
Updates references to the reconfigured DB from all appropriate DBs in
MDB /USERA
RCFUPDATE TEAM STEEL
Updates references to the reconfigured DB from all appropriate DBs
owned by team STEEL.
RCFUPDATE ALL
Updates references to the reconfigured DB from all databases in
current project.
Command Syntax:
RCFUPGRADE (Reconfiguration)
Command Syntax:
RECONFIGURE (Reconfiguration)
Description: You can specify that the reference numbers stay the same in the
reconfigured database. The SAMEREF option will fail if:
• The database specified in the TO DB command has a
different DB number from the database given in the FROM
DB command.
• An element already exists with the same reference number.
You can specify that session information stays the same in the
reconfigured database by using the SESSIONS option:
• The option is not valid for SYSTEM, GLOBAL or
COMPARATOR DBs.
• The option is not available if you are doing a partial
reconfiguration. You must use the RCFCOPY ALL command
with RECONFIG SESSIONS.
• For extracts, RECONFIG SESSIONS will be assumed, even
if the option is not given.
• For Draft DBs, the picture files will be ignored.
• The reconfigured data must go TO a file.
• After reconfiguration, data can be read back in from the file,
replacing the original DB data. The SAMEREF option is
assumed when reading the data.
• When reading in data created by RECONFIG SESSIONS,
the DB number and extract number must be the same as the
originating DB number and extract number.
• If errors occur when reading in data created by RECONFIG
SESSIONS, the data is not saved unless you use the
RECONFIG FORCE option.
The normal procedure for reconfiguring a database and
maintaining the reference numbers is as follows:
1. Reconfigure from the target database to a file.
2. Delete the target database, and create a new one with the same
DB number.
RECONFIGURE (continued)
Examples:
RECONFIGURE
Command Syntax:
RECOVER (continued)
BBB
EEE
STEELN/STEEL
You are here
N is Primary at
EEE
CCC
PIPEN/PIPEN
is Primary at
You are CCC
administering
DDD from CCC DDD
RECOVER (continued)
System DBs
RECOVER SYSTEM FOR EEE FROM BBB
Recovers System database for EEE from the copy at BBB.
RECOVER SYSTEM FROM BBB
Recovers System database for the true current location from BBB.
Remote recovery of System DBs
(available at the Hub or the administering location of the
satellite)
RECOVER SYSTEM FOR EEE AT AAA FROM BBB
Recovers AAA's copy of the System database for EEE from the copy at
BBB.
Command Syntax:
>--- RECOVer -+-- SYSTEM --+-- FOR <loc> --.
| | |
| `---------------|
| |
`-- dbname ------------------+-- AT <loc> --.
| |
`--------------+-- FROM <loc> --.
| |
`----------------+--->
REINIT (Reconfiguration)
Command Syntax:
REMOTE (continued)
REMOTE (continued)
Examples:
For details of time and date syntax, see Section 7.2.
BACKTRACK
REMOTE <loc> BACKTRACK dbname TO 14:30
REMOTE <loc> BACKTRACK dbname TO SESS 17
Backtracks changes to the given database, which must be Primary at
the named location. A database cannot be backtracked through a
stamp.
REVERT
REMOTE <loc> REVERT dbname TO 14:30
REMOTE <loc> REVERT dbname TO SESS 17
Adds a session reverting to the data at the specified session or date.
The database must be Primary at the named location.
MERGE CHANGES
REMOTE <loc> MERGE CHANGES dbname BEFORE 31 MARCH
REMOTE <loc> MERGE CHANGES dbname BEFORE SESSION 9 AFTER SESSION 4
Merges changes to the given database, which must be Primary at the named
location. Stamped sessions will not be removed by the merge.
REMOTE <loc> MERGE CHANGES SYSTEM
Merges changes to the system database for the location <loc>.
REMOTE <loc> MERGE CHANGES SYSTEM FOR <loc2>
Merges changes to the system database for <loc2>, which must be
administered by <loc>.
EXPUNGE
REMOTE <loc> EXPUNGE
REMOTE <loc> EXPUNGE username
Expunges all users or the given user from the communications
database at the given Location. username is the PDMS username.
REMOTE <loc> EXPUNGE DB dbname
REMOTE <loc> EXPUNGE DB dbname USER username
REMOTE <loc> EXPUNGE DB SYSTEM
REMOTE <loc> EXPUNGE DB SYSTEM FOR <loc2>
Expunges all users or the given user from the given database at the
given Location. The database must be primary at the given Location.
username can be the PDMS username or a session number.
REMOTE (continued)
DICE Checking
REMOTE <loc> CHECK SYSTEM
REMOTE <loc> CHECK DB dbname
REMOTE <loc> CHECK MISCDB dbname
REMOTE <loc> CHECK COMMDB
REMOTE <loc> CHECK SYSTEMDB FOR <loc2>
Performs a standalone DICE check on the given database at the given
Location. The database does not need to be primary at the given
Location. The check uses the current MODE, STATISTICS,
MAXERRORS and MAXWARNINGS settings.
Cancelling commands
REMOTE <loc> CANCEL <gid>
Allows an Admin user to cancel a command at another Location <loc>,
where <gid> is a TRINCO in the transaction database for the given
Location (this is not the current Location, unless <loc> is the current
Location). This command requires an up-to-date version of the
transaction database for Location <loc> to be available at the current
Location. (The transaction database is not normally propagated. It is
best to RECOVER this database from the primary location rather than
to SYNCHRONISE it.)
Command Syntax:
• For details of <loc> and <when> syntax, see Section 7.2.
REMOTE (continued)
REMOTE (continued)
Querying:
Remote database session information can only be queried by
looking at the secondary database at the current location, which
may not be up-to-date.
Information about remote users of PDMS may be queried using
remote session objects. For example
!p = current project Returns a PROJECT object
!l = !p.locations() Returns an array of LOCATION
objects
!r = !l[2].sessions() Where !l[2] is not the current
location, returns an array of
SESSION objects
q var !r[1]
q var !r[1].module() Returns data about a given
session
q var !r[1].user()
q var !r[1].mdb().
This may be combined with information about the satellite MDBs
to identify users of a database when using
REMOTE…EXPUNGE.
For more information about PML Objects see the Plant Design
Software Customisation Reference Manual. Only these three
session methods are available for remote sessions.
Examples:
REMOTEMessage <loc> ALL text
Send message to all users at named location
REMOTEMessage <loc> TEAM teamid text
Send message to all members of a team at named location
REMOTEMessage <loc> FREEUSER text
Send message to administrator at a named location
Command Syntax:
Examples:
REMOVE SERV/AREA-D
Command Syntax:
.------------.
/ |
>-- REMove dbname ---*--- dbname ---’
|
‘-------------------->
RENEW (continued)
Examples:
RENEW DELETE <db>
Renews the transaction DB at the current location
RENEW TRANSACTION/LON AT LON
Renews the transaction DB for London at location London
Command Syntax:
Examples:
REORDER 2 BEFORE 1
Command Syntax:
REPLICATE (continued)
Before you run the macro to recreate the project structure, you
must create the new project-related directories. In a Global
project, this must include transfer directories for each satellite (for
more details, see the TRANSFER command).
Note: It is strongly recommended that this is only done in a
newly created project, otherwise results could be
unpredictable.
Examples:
REPLICATE XYZ
Copies all data from the current project directories into directories for a
project named XYZ.
REPLICATE SYSTEM filename
Generate macro to replicate the project structure. If the current project
is global, the macro will include Location and Communication details.
REPLICATE SYSTEM /filename FILENUMBERS
Generate macro in a file /filename to replicate the complete data in the
current project, maintaining the same file numbers.
REPLICATE SYSTEM /filename OVERWRITE
Generate macro to replicate the complete data in the current project.
The data will be saved in the named file. If the file exists, it will be
overwritten.
REPLICATE SYSTEM STANDalone filename
Generate macro to replicate the project setup for a stand-alone (non-
global) project. This omits all references to Locations and
Communication elements.
REPLICATE SYSTEM SATELLite filename
Generate macro to replicate the project setup for a satellite of a
Global project. This outputs the commands for building the System
database only, not the Global database, that is, Teams, DBs and
Locations are omitted.
REPLICATE (continued)
RESETXREFS (Reconfiguration)
Examples:
RESETXREFS WITH /REFFILE RESOLVE DB MASTER/DESNEW
where /REFFILE is the name of the file generated by the XREF
command and MASTER/DESNEW is the corresponding DB to be updated.
Command Syntax:
Examples:
REVERT PIPE/PIPE to 10:30
Reverts database to the session current at 10:30.
REVERT PIPE/PIPE to 31 MAY
Reverts database to the session current on 31st May.
REVERT PIPE/PIPE to SESS 10
Reverts database to the session 10.
REVERT PIPE/PIPE to STAMP /stamp_012
Reverts database PIPE/PIPE to the session that has the stamp
/stamp_012.
Command Syntax:
On Global projects:
ALLOCATE
DEALLOCATE
HUBLOCATION
CHANGE PRIMARY
PREVOWNER HUB
SYSTEMLOC
GENERATE LOCATION
ADMINISTER
CREATE EXTRACT
CREATE WORKING EXTRACT
MERGE CHANGES GLOBAL
Command Syntax:
Description: Set the specified MDB, DB Set or Team as the current one for the
addition or removal of DBs or users, respectively.
• Once a team has been set, DBs owned by that team can be
referred to by using the database part of the name only.
• ADD, DEFER, REMOVE, CURRENT and EXCHANGE
require an MDB to be set.
• Databases can only be added to a DB set once the DB Set
has been specified.
Examples:
SET MDB /RAB
Sets current MDB as RAB.
SET DBSET /ASET
Sets current DB Set as ASET.
SET TEAM PIPING
Sets current team as PIPING. Abbreviated references to the DBs
/AREA-A, /AREA-B etc. will automatically be taken as references to the
actual DBs PIPING/AREA-A, PIPING/AREA-B etc.
Command Syntax:
Querying:
Examples:
An example of the output from DICE when statistics are
requested is as follows:
OVERALL STATISTICS
==================
Total no. of entries in Name Table = 111
Total no. of elements checked = 782
Total no. of ref attributes found = 726
Total no. of external references = 0
Command Syntax:
STATUSSESSION (Querying)
Function: Gives information about your current status and the database to
which you have access.
Examples:
An example of output is shown below.
Project:
User: HVAC (75dws52)
Teams: HVAC
MDB: /HVAC
Command Syntax:
Command Syntax:
>--- STOP --->
SYNCHRONISE (continued)
Command Syntax:
SYSTAT (Querying)
Description: Lists all users who are accessing the project, the modules and
databases which they are using, and whether they have Read-only
or Read/Write access to the database. It also gives the login id and
workstation identifier. You can select what information you want
output: see the following examples.
SYSTAT (continued)
DB MODE
HANGERS/DESI R
HANGERS/PADD RW
HANGERS/CATA R
MASTER/PIPECATA R
MASTER/STLCATA R
MASTER/HVACCATA R
MASTER/SUPPCATA R
MASTER/PADD R
MASTER/DICT R
MASTER/PROP R
2 user(s) listed
This shows that two users are using Project SAM:
• User HANGER who is using DRAFT, and has Read/Write
access to the Draft database HANGERS/PADD.
• User HVAC who is using DESIGN, and has Read/Write
access to the Design database HVAC/DESI.
SYSTAT (continued)
Command Syntax:
>--- SYStat ---+----------------------.
| |
|--- USER username ----|
| |
|--- NAME ’loginid’ ---|
| |
|--- HOST ’hostid’ ----|
| |
|--- MODUle module ----|
| |
‘--- MDB name ---------+--->
Examples:
SYSTEMLOCation LON PRIMARY AT OXF
Changes the Primary Location of the Location LON to be the Location
OXF, so that LON can be administered from OXF.
SYSTEMLOCation OXF LOCAL
Changes the Primary Location of the Location LON to be at LON, so
that LON can be administered locally.
SYSTEMLOCation OXF HUB
Changes the Primary Location of the Location OXF to be the Hub.
SYSTEMLOCATION (continued)
Command Syntax:
Examples:
TADD SJC
Add user SJC to the current Team.
Command Syntax:
.------<-----.
/ |
>--- TADD userid ---*--- userid ---’
|
‘----------------->
Examples:
TERM
Terminates alpha file and outputs reports to screen. This syntax is
equivalent to ALPHA FILE END
Command Syntax:
TO (Reconfiguration)
Examples:
TO DB USERA/DESIGN
Reconfigured data to go to database USERA/DESIGN in current
project.
TO NEW USERM/DESIGN DBNO 777
Reconfigured data to go to new database USERM/DESIGN, number
777, in current project.
TO NEW USERM/DRAFT ACCESS UPDATE
Reconfigured data to go to new database USERM/DRAFT, N readers, 1
writer access rights, in current project.
TO DBFILE des008
Reconfigured data to go to specified file (assumes project directory is
current directory).
TO FILES /TEMP1 /TEMP2
Only pass 1 of reconfiguration to be carried out; partially reconfigured
data to be stored in named files.
TO (continued)
Command Syntax:
Description: This command is used at the Hub and at an offline location. All
the databases at the current location will be transferred. Before
the command is given, the environment variable pointing at the
transfer directory must be set, and the transfer directory must
exist and contain the normal project sub-directories.
TRANSFER (continued)
Examples:
TRANSFER TO loc
Copies all database files at the current location, together with
appropriate inter-db macro files etc. to the transfer directory specified
by the project_loc variable.
TRANSFER FROM loc
Updates the current location with the files transferred from Location
loc. Only databases that are allocated at the current location will be
read in.
Command Syntax:
Examples:
TREM SJC
Removes user SJC from the current Team.
Command Syntax:
.-----<------.
/ |
>--- TREmove userid ---*--- userid ---’
|
‘-------------------->
Examples:
UNLOCK
Unlocks all locked databases
Command Syntax:
UPDATE (continued)
Command Syntax:
UPGRADE (Reconfiguration)
Examples:
UPGRADE /OUTMACRO /INMACRO
This will produce two macro files, OUTMACRO and INMACRO.
OUTMACRO will be used in the old PDMS version to dump the
contents of all DBs in the project to intermediate files. INMACRO will
be used in the new PDMS version to load the intermediate files and
recreate the complete project.
UPGRADE /OUTMACRO /INMACRO FOREIGN db1 db2 ...
All databases, including the list of foreign databases specified by the
FOREIGN option will upgraded.
UPGRADE /OUTMACRO /INMACRO FOREIGN ALL
All databases, including all foreign databases will upgraded.
Command Syntax:
.---<------.
/ |
>--- UPGrade macro1 macro2 ---+-- FOReign --*-- dbname --’
| |
‘-------------+--- ALL -----.
| |
`-------------+--->
VB (Reconfiguration)
***Reconfiguration Completed
0 Elements were not defined in DDL
0 Elements have been lost
0 Elements are no longer named
3 Attributes were incorrectly defined
0 Elements were not inserted.
Command Syntax:
>--- VB --->
XREF (Reconfiguration)
Examples:
XREF /REFFILE
Reference number list to be written to file /REFFILE.
Command Syntax: