Data Build Manual
Generating Conversion Procedures (F3)
Running Data Build
4–14 099331 Tandem Computers Incorporated
3. Exit Data Build.
4. Edit the file ZZTABLES and change the NonStop SQL default settings you want.
5. Enter OBEY XTABLES at the TACL prompt to create the NonStop SQL tables with
the new settings.
6. Start Data Build. Do not rerun step F2 because it will wipe out the changes you
made. Instead, complete steps F3 through F5 in Data Build. Data Build will create
a conversion program that reflects the NonStop SQL tables you defined.
Generating
Conversion
Procedures (F3)
In step F3, COBOL85 conversion procedures are generated that are compiled into the
COBOL85 conversion program in the next step. The input record specification to the
DDL file contains information that is used to determine which conversion procedures
are generated.
To generate the conversion procedures:
1. Press F3 at the Main Menu. During step F3, the conversion procedures for each
DDL input file are stored in the file PROCLIB.
2. Press any key to return to the Main Menu.
3. Press F12 to run Peruse and check spooler locations #GENPROC and #PROCS.
Correct any compiler errors or warnings before continuing.
4. Exit Peruse to return to Data Build.
The conversion procedures are divided into sections, with one section for each input
record. Each section has conversion routines for each field within the input record.
The conversion routines are executed for every record read when the data is
converted.
This F3 step also creates a USERLIB file which contains a skeleton section for every
user exit. If a USERLIB file already exists, a message is displayed requesting
permission to purge it. Add any user exit code to USERLIB after this F3 step.
Customizing the
Conversion Program
(F4)
In step F4, you create the conversion program. Data Build copies the procedures from
PROCLIB (created in step F3) and compiles a COBOL85 conversion program. Data
Build compiles ZZPROCS, the source program for generating conversion procedures,
and produces object file ZZPROCSX. If you modify ZZPROCS, you must recompile it
and produce a new version of object file ZZPROCSX. From this, Data Build creates
data conversion program ZZPROGM.