Data Build Manual
5 Running the Sample Programs
099331 Tandem Computers Incorporated 5–1
This section teaches you how to set up Tandem Data Build to create your own
COBOL85 conversion programs. This procedures assumes you have already used the
Project utility and created a project subvolume.
Sample Data
Conversion
to Enscribe
Data Build can create a conversion program that converts non-Tandem or Tandem
input data files and writes the output to either Tandem Enscribe databases or to
NonStop SQL tables. This subsection shows you how to create an Enscribe conversion
program using the sample files.
Input Files For any conversion start by identifying the input data files from the non-Tandem
system that you want to convert. The sample input files for this tutorial are
DATAIN01, DATAIN02, and DATAIN03, which are copied to every conversion
project subvolume by the Project utility.
Each input file has a corresponding Source Record Descriptions file. In the next
subsection, you will look at the Source Record Descriptions files for the sample input
data files.
Source Record
Descriptions
Preparing accurate source record descriptions for the input file is crucial in making
sure that the conversion goes smoothly. The source record descriptions are a
field-by-field description of the records in the input file. The source record
descriptions for the sample input files were prepared for you.
To look at the Source Record Descriptions file, do the following:
1. Volume to your sample conversion project subvolume.
2. Use the editor to look at the Source Record Descriptions files.
For each input file, there is one Source Record Descriptions file. RECDEF01,
RECDEF02, and RECDEF03 are the Source Record Descriptions files which correspond
to DATAIN01, DATAIN02, and DATAIN03. Note that the Source Record Descriptions
files all have the same prefix, RECDEF, and are sequentially numbered from 01 to 03.
Although it is recommended that the input file names be the same as the DEFINE
names, it is not required. What is required is that the DEFINE names for the input
files, which we will discuss later, have the same prefixes.
RECDEF01 is shown in the following:
01 DEMO01.
02 DEM1-STATE PIC X(2).
02 DEM1-ZIPCODE PIC X(6).
02 DEM1-PHONE PIC S9(10) COMP-3.
02 DEM1-NAME PIC X(25).
02 DEM1-ADDRESS PIC X(25).
02 DEM1-CITY PIC X(18).
02 DEM1-CODE PIC X(14).