HP System Dictionary/XL SDMAIN Reference Manual (32256-90001)

4-52
COPY VERSION
Creates a new version and copies all the entities and relationships of the source version to the new version.
Syntax
CO[PY] V[ERSION] source-version-name
,target-version-name
[;INT[ERNAL] = internal-name ] .
Parameters
source-version-name Name of the version to be copied.
target-version-name External name of the new version that has entities and relationships copied to it.
internal-name Internal name of the target version. If not specified, the internal name is the same as
the target-version-name.
Description
The target version cannot already exist.
If the source version is linked to a version in the common domain, the target version is linked to that same
version. The new version's status is always automatically set to test, even if the source version's status is
production or archival. Refer to the SETVERSION command for information about changing the status of
a version.
Open Mode: Shared-update or exclusive-update
Scope: DA scope or any scope with version capability. The scope with which the dictionary is open is the
owner of the new version.
Example
The following example copies all entities and relationships in version test1 to the new version test2.
>COPY VERSION test1, test2
>
CREATE ATTRIBUTE
Creates a new attribute.
Syntax
C[REATE] A[TTRIBUTE] attribute-name
[;INT[ERNAL] = internal-name ]
;T[YPE] = attribute-data-type
[;LEN[GTH] = attribute-length ]
[;E[DIT-]V[ALUE] = attr-edit-value1
[,attr-edit-value2 ]
.