Fill in all the fields of this wizard to create a Program.
- Project
- Choose a project in the dropdown list or enter the name of the
project in which the instance will 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
will be built, shared or versioned.
A Pacbase project contains
a sub-set of files which correspond to the models and/or generated
sources making up a Pacbase application.
There can be various
projects for each location (a location is the equivalent of a database).
- Package
- Choose a package in the dropdown list or enter the name of a new
package.
A package corresponds to a logical group of information.
The
logical resources contained in a package can be distributed into various
projects.
In the 'Navigator' view of the
'Design' perspective, you will see that the packages
represent the branches of your projects. Each package contains its
own instances.
For the resources transferred from Pacbase, the
naming convention of a package will be {Repository Name}.{Library
Path}.{Library Name} So respecting this naming when you
create a package is a good idea. To reflect the library hierarchy,
you can enter the library names (starting from the highest-level library),
and separate each with a period (ex: 'COM.CIF').
This way, the 'Navigator' view will display a
first-level branch, COM, with its instances,
and a second-level branch, CIF, with its own
instances.
- Name
- Enter the name here. Its maximum length is 6 characters and it
must be constituted of alphabetic or numeric characters only.
- Generation parameters
- Generation parameters are specified in libraries. These parameters
are related to the adaptation to the operating system in use.
You
select the library by clicking the Browse... button.
- Label
- Enter the label, which identifies the new instance. It will then
constitute a search criterion for a subsequent search.
- Open editor on finish
- Check this box if you want the editor of the instance you are
creating to open up automatically. The editor will open up on the Overview tab.
From there, you will be able to access the other tabs to specify all
the characteristics of the instance.
- Derive
- Check this box if you want to create a derived instance from a
referenced instance. From this derived instance, you can generate
the code of the referenced instance without duplicating the instance's
design. Checking this box displays two fields:
- Derivation type. Depending on the entity,
there can be one or two derivation types:
- Library substitution is available on Programs,
Screens, Data Structures (for the generation of the Copybooks) and
Dialogs (for the generation of the error messages). In the derived
instance, you can generate the code of the referenced instance from
a different library, without duplicating the instance's design.
- Source inheritance is available on Programs
and Screens. From the derived instance, you can generate the referenced
Program or Screen which includes specific code ; the
Cobol source (i.e. the generated code and the specific code) of the
referenced instance becomes the generated code in the derived instance
and you can then add specific code to it. In turn, the derived instance
can become the referenced instance for a new derived instance and
the same process applies.
- <Entity> to derive. In the wizard, <Entity> can
be Program, Screen, Data
Structure or Dialog. You select
here the referenced instance, which contains the design and the specific
code needed to generate the derived instance