virgilioso
Programmer
Can anyone give me an answer on why this aint working?
Produces an error:
*** Error: Import data record not terminated with LF or CF!
// FIRST FILE (bteq script)
.SET SESSIONS 8
.LOGON tera1/name,secret
DATABASE jan_db;
.IMPORT DATA FILE = department.input
.REPEAT *
USING my_department_number(char(4)),
my_department_name(char(30)),
my_budget_amount(char(7)),
my_manager_employee_number(char(4))
INSERT INTO department(
department_number,
department_name,
budget_amount,
manager_employee_number)
VALUES
my_department_number,
:my_department_name,
:my_budget_amount,
:my_manager_employee_number
);
.LOGOFF;
// SECOND FILE (data file, department.input)
1 zebrinny 1000.1 1000
2 zebroid 999.11 1005
3 zebrula 998.12 1010
Produces an error:
*** Error: Import data record not terminated with LF or CF!
// FIRST FILE (bteq script)
.SET SESSIONS 8
.LOGON tera1/name,secret
DATABASE jan_db;
.IMPORT DATA FILE = department.input
.REPEAT *
USING my_department_number(char(4)),
my_department_name(char(30)),
my_budget_amount(char(7)),
my_manager_employee_number(char(4))
INSERT INTO department(
department_number,
department_name,
budget_amount,
manager_employee_number)
VALUES
my_department_number,
:my_department_name,
:my_budget_amount,
:my_manager_employee_number
);
.LOGOFF;
// SECOND FILE (data file, department.input)
1 zebrinny 1000.1 1000
2 zebroid 999.11 1005
3 zebrula 998.12 1010