HiRDB Datareplicator Version 8 Description, User's Guide and Operator's Guide

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

5.13.2 Examples of source Datareplicator definitions

Of the source Datareplicator definitions, this section explains by way of examples the extraction system definition, extraction environment definition, and transmission environment definition. For an example of an extraction definition, see 5.13.4 Examples of source and target definitions.

The source Datareplicator provides templates for source Datareplicator definitions. You can copy these templates under the $HDEPATH/ directory and edit and use them in your user environment. To use the templates in a UNIX system with the EUC code system, you need to use OS commands for converting character codes (such as iconv). For details about the OS commands for converting character codes, see the applicable OS reference manual.

The templates for the source Datareplicator definitions are stored in the following directories:

The following table shows the filenames of the templates for source Datareplicator definitions.

Table 5-24 Filenames of the templates for source Datareplicator definitions

Definition name Filename Specification method
Extraction system definition hdeenv
  • The templates use the JIS8/ Shift JIS code system for comments.
  • All lines beginning with set are required operands.
  • All lines beginning with #set are optional operands.
  • The specification range and default are indicated as <<specification-range; default>>.
  • If an operand has a default value, the default value is indicated as the setting; otherwise, no value is indicated.
  • A ruler is provided, because the maximum length of an operand is 80 characters.
Extraction environment definition extenv
Transmission environment definition sendenv
Extraction definition extfile
  • The template uses the JIS8 or Shift JIS code system for comments.
  • The extraction statement cannot be omitted from the extraction definition, but its specification depends on the user's definitions. Therefore, all definition examples are provided as comments. However, the semicolon (;) indicating the end of a definition is part of the actual coding, not a comment.
  • General rules are provided at the beginning.
Organization of this subsection
(1) Example of an extraction system definition
(2) Example of an extraction environment definition
(3) Examples of transmission environment definitions

(1) Example of an extraction system definition

The following figure shows an example of an extraction system definition.

Figure 5-14 Example of an extraction system definition

[Figure]

(2) Example of an extraction environment definition

The following figure shows an example of an extraction environment definition.

Figure 5-15 Example of an extraction environment definition

[Figure]

(3) Examples of transmission environment definitions

(a) Example of a transmission environment definition when the target identifier is S1

The following figure shows an example of a transmission environment definition when the target identifier is S1.

Figure 5-16 Example of a transmission environment definition (target identifier: S1)

[Figure]

(b) Example of a transmission environment definition when the target identifier is S2

The following figure shows an example of a transmission environment definition when the target identifier is S2.

Figure 5-17 Example of a transmission environment definition (target identifier: S2)

[Figure]