A-13, Control file: noaudit mode, Example a-13 control file: noaudit mode – HP Neoview Release 2.3 Software User Manual
Page 94
Example A-13 Control File: NOAUDIT mode
/*---------------------------------------------------------------------------------------*/
/* A Single Load Job Using NOAUDIT Mode, A Single Source File, And A Single Target Table */
/*---------------------------------------------------------------------------------------*/
version 1;
options
{
errors = 1000,
discards = 100,
rowsetsize = 5000,
sorted = "true",
noaudit = "true"
}
dataformats
{
dataformat1 delimited
records separated by
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
)
}
sources {
src1 file "./data_files/sn_nvt_01.dat"
tgt1 jdbc table NEO.nvt.sn_nvt options
(
system = "asl0101",
user = "gcscsup",
password = "transport",
datasource = "TDM_Default_DataSource",
url = "jdbc:hpt4jdbc://txnaslan01.txn.cpqcorp.net:18650/",
)
}
maps {
map1 from dataformat1 to dataformat2
(
FIRST_NAME = FIRST_NAME,
LAST_NAME = LAST_NAME,
ADDRESS = ADDRESS,
ZIP = ZIP,
PHONE = PHONE,
SSN = SSN,
INFO1 = INFO1,
INFO2 = INFO2
)
}
jobs
{
load1 load
(
source src1 target tgt1 map map1
)
}
94
Control File Examples