Control file: include defining dataformats – HP Neoview Release 2.5 Software User Manual

Page 95

Advertising
background image

Example A-5 Control File: Include Defining Dataformats

You can use an Include file such as this to define data formats for many control files. See

Example A-6

, in which this file, ./CF/include_part_2.cf has been included to define the

data formats.

/* Simple Load From File To Table Using INCLUDE To Include Control File Fragment (File 2/2) */

# comment: control file fragment defines data formats, can be included in other control files
dataformats
{
dataformat1 delimited
records separated by <nl>
fields delimited by <,>
optionally qualified by <">
(
FIRST_NAME char,
LAST_NAME char,
ADDRESS char,
ZIP int,
PHONE char,
SSN largeint,
INFO1 char,
INFO2 char
)

dataformat2 sql fields
(
FIRST_NAME char,
LAST_NAME char,
ADDRESS char,
ZIP int,
PHONE char,
SSN largeint,
INFO1 char,
INFO2 char
)

}

95

Advertising