Data Build Manual

Modifying the DEFINES and PATHCNFG Files
Setting Up the Project Environment
099331 Tandem Computers Incorporated 3–13
Modifying the
DEFINES and
PATHCNFG Files
The DEFINES and PATHCNFG files point to the input files, output files (Enscribe
conversion), and the NonStop SQL catalog and tables (NonStop SQL conversion). The
DEFINES and PATHCNFG files, which the Project utility copied to the conversion
project subvolume, are preconfigured for the sample conversions. You will have to
change these files to include the files associated with your conversion project.
For example, if you are converting the data to NonStop SQL, the DEFINEs must
contain the names and locations of the NonStop SQL catalog and tables. The next two
subsections describe how to change the DEFINES and PATHCNFG files for an
Enscribe or NonStop SQL conversion.
Obey the DEFINES file, if you change it, and correct any errors before you run Data
Build.
Enscribe Conversion For an Enscribe conversion, the DEFINES file must have a DEFINE for each input and
output file. Suppose you have two data input files VSAMIN01 and VSAMIN02 and
want to output the data to these two files VSAMOT01 and VSAMOT02. The following
is an example from a DEFINES file:
DELETE DEFINE =VSAMIN01
ADD DEFINE =VSAMIN01, CLASS MAP, FILE $CONVERT.SUBVOL.VSAMIN01
DELETE DEFINE =VSAMIN01
ADD DEFINE =VSAMIN02, CLASS MAP, FILE $CONVERT.SUBVOL.VSAMIN02
DELETE DEFINE =VSAMOT01
ADD DEFINE =VSAMOT01, CLASS MAP, FILE $CONVERT.SUBVOL.VSAMOT01
DELETE DEFINE =VSAMOT02
ADD DEFINE =VSAMOT02, CLASS MAP, FILE $CONVERT.SUBVOL.VSAMOT02
Note that each input file DEFINE name starts with the same prefix and ends with a
consecutively numbered suffix. The same is true for the output files. The actual file
names can be different.
When you finish changing the DEFINES file, copy each ADD DEFINE statement
(which you added to the DEFINES file) to the PATHCNFG file and change “ADD” to
“SET SERVER.” The following is an example from a PATHCNFG file:
RESET SERVER
SET SERVER DEFINE =VSAMIN01, CLASS MAP, FILE $CONVERT.SUBVOL.VSAMIN01
SET SERVER DEFINE =VSAMIN02, CLASS MAP, FILE $CONVERT.SUBVOL.VSAMIN02
SET SERVER DEFINE =VSAMOT01, CLASS MAP, FILE $CONVERT.SUBVOL.VSAMOT01
SET SERVER DEFINE =VSAMOT02, CLASS MAP, FILE $CONVERT.SUBVOL.VSAMOT02
SET SERVER DEFINE =CAT,CLASS CATALOG,SUBVOL $CONVERT.SQLCAT
SET SERVER PROGRAM $INSTALL.SUBVOL.RUNSRVR
SET SERVER CPUS (1:0)
SET SERVER MAXSERVERS 2
SET SERVER MAXLINKS 5
ADD SERVER RUN-PROC-DCNVT