This wizard is used to create an instance of Segment, Logical
View or Table entity. You must specify the name and label of the new
instance, the project where it is to be saved.
- Package
- A package corresponds to a logical group of information in a project.
If
you are maintaining a Pacbase application, selecting a package is
not advised. The instance override mechanism is then made easier because
the overriding instance is always in the same package as the overridden
instance. You do not need to manage the presence of both the instances
in the same package, which is the requirement of an override.
- Project
- Select a project in the list or enter the name of the project
in which the instances are to be saved.
A project represents the
physical distribution of your instances in your workspace. It groups
directories and files. It is used to organize resources which can
be built, shared, or stored as a version.
A Pacbase project
contains a subset of files, which correspond to the models and the
generated sources that make up an application.
There can be
various projects for each location (a location is the equivalent of
a database).
- Segment type
- Select the type of entity that you want to be created: Segment, Logical
View or Table.
- Name
- Enter the name of the new Segment, Logical View or Table.
- Segment
- The Segment name is made of the Data Structure name and a number.
If a Library is defined with the protection of extracted entities
or no modification of extracted lines, the creation of a Segment is
authorized if its Data Structure exists in the same Library and if
the Segment does not exist in a protected Library of the network.
The first character must be numeric and the second one must be either
numeric or alphabetic. However, the second character can be alphabetic
only if the first character is other than zero. The possible values
of this code are:
- '00'. Common part of records in a file
or a database, located at the beginning of each record (Default).
The control break sort keys, the record type, and the keys of indexed
files are contained in this Segment. A file does not necessarily
have a common part. Records on files with only one type of record
must be coded as a '00' Segment.
- '01'–'99' which is a specific part. The
common part Data Elements are automatically concatenated with those
of each specific part Segment.
- Logical View
- The Logical View name is made of the name of the Data Structure
associated with the new Logical View instance and a record code. The
Data Structure name is made up of two alphanumeric characters. This
name is a logical code internal to the database. It is therefore independent
of the names used in Database Blocks and Programs. The second part
of the Logical View name must be two characters long. The first character
must be a number, and the second character can be a number or letter.
If the second character is a letter, the first character must be different
from zero. If a Library is defined with the protection of extracted
entities or no modification of extracted lines, the creation of a
Logical View is authorized if its Data Structure exists in the same
Library and if the Segment does not exist in a protected Library of
the network.
- Table
- Enter the name of a Table which is the Data Structure name followed
by the two characters of the Segment code for a Table record from
01 to 99. The first character must be numeric, the second either numeric
or alphabetic. However, the second character can be alphabetic only
if the first character is other than zero. The value '00'
is not allowed for a Data Structure defined as a table.
- Label
- Enter the label, which identifies the new instance. It constitutes
a search criterion for a subsequent search.
- Open editor on finish
- Select this check box if you want the editor of the instance you
are creating to open up automatically. The editor opens up on the Overview tab.
From there, you can access the other tabs to specify all the characteristics
of the instance.