OpenTP1 Version 7 Programming Guide

[Contents][Index][Back][Next]

8.2.1 Procedure common to all samples (Base sample)

This subsection explains the preparation procedure common to three OpenTP1 samples (Base, DAM, and TAM samples).

Install OpenTP1 products (TP1/Server Base, TP1/FS/Direct Access, and TP1/FS/Table Access) before using these samples. The OpenTP1 administrator is responsible for this work. The procedure so far is the same as the ordinary OpenTP1 setup procedure.

Organization of this subsection
(1) Specifying an OpenTP1 home directory in environment variable DCDIR
(2) Adding directories to the OpenTP1 administrator's command search path
(3) Copying a set of OpenTP1 samples

(1) Specifying an OpenTP1 home directory in environment variable DCDIR

Specify an OpenTP1 home directory in the environment variable DCDIR.

Example
Change the OpenTP1 home directory to /usr/betran:
% setenv DCDIR /usr/betran <CR>

(2) Adding directories to the OpenTP1 administrator's command search path

Add a search path for OpenTP1 commands and a search path for sample-serving tools to be used with samples to the OpenTP1 administrator's command search path.

(3) Copying a set of OpenTP1 samples

If the OpenTP1 home directory was changed to a directory other than /BeTRAN in step (1), copy a set of OpenTP1 samples into the environment of the OpenTP1 home directory. If the OpenTP1 home directory is unchanged, copying is not needed. For copying, use the cp, tar, or other similar command.

Before copying, make sure that the OpenTP1 home directory is configured as shown in 8.1.2 Sample program directory configuration. Otherwise, the operation is unpredictable.

Example
Copy the samples from the /BeTRAN directory where OpenTP1 was installed to the OpenTP1 home directory (using the cp command):
% cp -R /BeTRAN/examples $DCDIR <CR>

An environment that allows the OpenTP1 samples to be used is now established.